Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ ENABLE_SUPPORT_MENU_ITEM=true
SUPPORT_MENU_ITEM_URL="https://workfloworchestrator.org/orchestrator-core/reference-docs/tldr/"
ENABLE_AO_STACK_STATUS=true
AO_STACK_STATUS_URL=https://status.orchestration.surf/status/prd
START_WORKFLOW_FILTERS="active|pre_production|phase_out"

# Disable cache - usefull when in development
NEXT_PUBLIC_DISABLE_CACHE=false
Expand All @@ -34,4 +35,3 @@ KEYCLOAK_ADMIN=admin
KEYCLOAK_ADMIN_PASSWORD=admin
KEYCLOAK_PORT=8085


8 changes: 7 additions & 1 deletion configuration/configuration.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {
Environment,
OrchestratorConfig,
getEnvironmentVariables,
} from '@orchestrator-ui/orchestrator-ui-components';
import type { OrchestratorConfig } from '@orchestrator-ui/orchestrator-ui-components';

export const getInitialOrchestratorConfig = (): OrchestratorConfig => {
const {
Expand All @@ -21,6 +21,7 @@ export const getInitialOrchestratorConfig = (): OrchestratorConfig => {
SUPPORT_MENU_ITEM_URL,
ENABLE_AO_STACK_STATUS,
AO_STACK_STATUS_URL,
START_WORKFLOW_FILTERS,
} = getEnvironmentVariables([
'USE_THEME_TOGGLE',
'ENVIRONMENT_NAME',
Expand All @@ -37,10 +38,14 @@ export const getInitialOrchestratorConfig = (): OrchestratorConfig => {
'SUPPORT_MENU_ITEM_URL',
'ENABLE_AO_STACK_STATUS',
'AO_STACK_STATUS_URL',
'START_WORKFLOW_FILTERS',
]);

const graphqlEndpointCore = `${ORCHESTRATOR_GRAPHQL_HOST}${ORCHESTRATOR_GRAPHQL_PATH}`;
const orchestratorApiBaseUrl = `${ORCHESTRATOR_API_HOST}${ORCHESTRATOR_API_PATH}`;
const startWorkflowFilters = START_WORKFLOW_FILTERS?.trim()
? START_WORKFLOW_FILTERS.replaceAll('_', ' ').split('|')
: undefined;

return {
orchestratorApiBaseUrl,
Expand All @@ -58,5 +63,6 @@ export const getInitialOrchestratorConfig = (): OrchestratorConfig => {
supportMenuItemUrl: SUPPORT_MENU_ITEM_URL,
enableAoStackStatus: ENABLE_AO_STACK_STATUS?.toLowerCase() === 'true',
aoStackStatusUrl: AO_STACK_STATUS_URL,
startWorkflowFilters,
};
};
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.