From c5555884c604beca2c531b5fc07db86b1a42eb9c Mon Sep 17 00:00:00 2001 From: Renaud Genevois Date: Tue, 21 Nov 2023 17:10:07 +0100 Subject: [PATCH] parse boolean dev options --- src/utils/read-env-vars.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/read-env-vars.ts b/src/utils/read-env-vars.ts index 34c60f57..dec4ad7e 100644 --- a/src/utils/read-env-vars.ts +++ b/src/utils/read-env-vars.ts @@ -39,5 +39,5 @@ export const environment = { AUTH_TYPE: getEnvVar('REACT_APP_AUTH_TYPE') || AuthTypeEnum.None, // VISUALIZE is disabled by default, so if value is not present and not set to true in env-config.js, VISUALIZE page is disabled VIZUALIZE_ENABLED: getEnvVar('REACT_APP_VIZUALIZE_ENABLED') || false, - DEBUG: Boolean(getEnvVar('REACT_APP_DEBUG') || false) + DEBUG: Boolean(getEnvVar('REACT_APP_DEBUG') === 'true'), };