Skip to content

Commit d9d24f9

Browse files
author
Georgi2704
committed
Add ENV variables for AO stack status
1 parent 41e078e commit d9d24f9

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.env.example

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ SHOW_WORKFLOW_INFORMATION_LINK=true
1010
WORKFLOW_INFORMATION_LINK_URL="https://workfloworchestrator.org/"
1111
ENABLE_SUPPORT_MENU_ITEM=true
1212
SUPPORT_MENU_ITEM_URL="https://workfloworchestrator.org/orchestrator-core/reference-docs/tldr/"
13+
ENABLE_AO_STACK_STATUS=true
14+
AO_STACK_STATUS_URL=https://status.orchestration.surf/status/prd
1315

1416
# Disable cache - usefull when in development
1517
NEXT_PUBLIC_DISABLE_CACHE=false

configuration/configuration.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ export const getInitialOrchestratorConfig = (): OrchestratorConfig => {
1919
OAUTH2_ACTIVE,
2020
ENABLE_SUPPORT_MENU_ITEM,
2121
SUPPORT_MENU_ITEM_URL,
22+
ENABLE_AO_STACK_STATUS,
23+
AO_STACK_STATUS_URL,
2224
} = getEnvironmentVariables([
2325
'USE_THEME_TOGGLE',
2426
'ENVIRONMENT_NAME',
@@ -33,6 +35,8 @@ export const getInitialOrchestratorConfig = (): OrchestratorConfig => {
3335
'OAUTH2_ACTIVE',
3436
'ENABLE_SUPPORT_MENU_ITEM',
3537
'SUPPORT_MENU_ITEM_URL',
38+
'ENABLE_AO_STACK_STATUS',
39+
'AO_STACK_STATUS_URL',
3640
]);
3741

3842
const graphqlEndpointCore = `${ORCHESTRATOR_GRAPHQL_HOST}${ORCHESTRATOR_GRAPHQL_PATH}`;
@@ -52,5 +56,7 @@ export const getInitialOrchestratorConfig = (): OrchestratorConfig => {
5256
enableSupportMenuItem:
5357
ENABLE_SUPPORT_MENU_ITEM?.toLowerCase() === 'true',
5458
supportMenuItemUrl: SUPPORT_MENU_ITEM_URL,
59+
enableAoStackStatus: ENABLE_AO_STACK_STATUS?.toLowerCase() === 'true',
60+
aoStackStatusUrl: AO_STACK_STATUS_URL,
5561
};
5662
};

0 commit comments

Comments
 (0)