File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 11import React from 'react'
22import Footer from '../Footer/Footer'
3- // import { MAINTENANCE_MODE } from '../../config/constants'
3+ import { MAINTENANCE_MODE } from '../../config/constants'
44import Alert from 'react-s-alert'
55import cn from 'classnames'
66import { GatewayDest } from 'react-gateway'
@@ -17,7 +17,7 @@ const Layout = (props) => {
1717
1818 if ( isLoadingUser ) {
1919 return ( < div /> )
20- } else if ( maintenanceMode ) {
20+ } else if ( MAINTENANCE_MODE || maintenanceMode ) {
2121 return < Maintenance />
2222 } else {
2323 return (
Original file line number Diff line number Diff line change @@ -496,7 +496,7 @@ export const PROJECT_MAX_COLORS = 5
496496export const AUTOCOMPLETE_TRIGGER_LENGTH = 3
497497
498498// Toggle this flag to enable/disable maintenance mode
499- export const MAINTENANCE_MODE = false
499+ export const MAINTENANCE_MODE = process . env [ ` ${ process . env . ENV } _MAINTENANCE_MODE` ]
500500
501501export const LS_INCOMPLETE_PROJECT = 'incompleteProject'
502502
You can’t perform that action at this time.
0 commit comments