Skip to content

Commit 20ac84d

Browse files
authored
Merge pull request #22 from workfloworchestrator/941-conf-fix
941: Add feature toggles to orchestratorConfig
2 parents 182f4bd + e65acae commit 20ac84d

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

.env.example

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,6 @@ KEYCLOAK_ADMIN=admin
2121
KEYCLOAK_ADMIN_PASSWORD=admin
2222
KEYCLOAK_PORT=8085
2323

24-
NEXT_PUBLIC_USE_WEBSOCKET=false
25-
NEXT_PUBLIC_USE_THEME_TOGGLE=false
24+
USE_WEBSOCKET=false
25+
USE_THEME_TOGGLE=false
26+

configuration/configuration.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,7 @@ export const getInitialOrchestratorConfig = (): OrchestratorConfig => {
4646
process.env.ORCHESTRATOR_WEBSOCKET_URL ||
4747
DEFAULT_ORCHESTRATOR_WEBSOCKET_URL,
4848
authActive: process.env.AUTH_ACTIVE?.toLowerCase() != 'false',
49+
useWebSockets: process.env.USE_WEB_SOCKETS?.toLowerCase() === 'true',
50+
useThemeToggle: process.env.USE_THEME_TOGGLE?.toLowerCase() === 'true',
4951
};
5052
};

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)