File tree Expand file tree Collapse file tree 5 files changed +9
-6
lines changed
Expand file tree Collapse file tree 5 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -45,5 +45,6 @@ module.exports = {
4545
4646 TC_NOTIFICATION_URL : 'https://api.topcoder-dev.com/v5/notifications' ,
4747 CONNECT_MESSAGE_API_URL : 'https://api.topcoder-dev.com/v5' ,
48- TC_SYSTEM_USERID : process . env . DEV_TC_SYSTEM_USERID
48+ TC_SYSTEM_USERID : process . env . DEV_TC_SYSTEM_USERID ,
49+ MAINTENANCE_MODE : process . env . DEV_MAINTENANCE_MODE
4950}
Original file line number Diff line number Diff line change @@ -45,5 +45,6 @@ module.exports = {
4545
4646 TC_NOTIFICATION_URL : 'https://api.topcoder.com/v5/notifications' ,
4747 CONNECT_MESSAGE_API_URL : 'https://api.topcoder.com/v5' ,
48- TC_SYSTEM_USERID : process . env . PROD_TC_SYSTEM_USERID
48+ TC_SYSTEM_USERID : process . env . PROD_TC_SYSTEM_USERID ,
49+ MAINTENANCE_MODE : process . env . PROD_MAINTENANCE_MODE
4950}
Original file line number Diff line number Diff line change @@ -44,5 +44,6 @@ module.exports = {
4444
4545 TC_NOTIFICATION_URL : 'https://api.topcoder-dev.com/v5/notifications' ,
4646 CONNECT_MESSAGE_API_URL : 'https://api.topcoder-qa.com/v5' ,
47- TC_SYSTEM_USERID : process . env . QA_TC_SYSTEM_USERID
47+ TC_SYSTEM_USERID : process . env . QA_TC_SYSTEM_USERID ,
48+ MAINTENANCE_MODE : process . env . QA_MAINTENANCE_MODE ,
4849}
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 Maintenance from '../Maintenance/Maintenance'
@@ -16,7 +16,7 @@ const Layout = (props) => {
1616
1717 if ( isLoadingUser ) {
1818 return ( < div /> )
19- } else if ( maintenanceMode ) {
19+ } else if ( MAINTENANCE_MODE || maintenanceMode ) {
2020 return < Maintenance />
2121 } else {
2222 return (
Original file line number Diff line number Diff line change @@ -456,7 +456,7 @@ export const PROJECT_MAX_COLORS = 5
456456export const AUTOCOMPLETE_TRIGGER_LENGTH = 3
457457
458458// Toggle this flag to enable/disable maintenance mode
459- export const MAINTENANCE_MODE = false
459+ export const MAINTENANCE_MODE = process . env . MAINTENANCE_MODE
460460
461461export const LS_INCOMPLETE_PROJECT = 'incompleteProject'
462462
You can’t perform that action at this time.
0 commit comments