fix rule editor env var

This commit is contained in:
Dan Percic 2023-08-17 18:23:58 +03:00
parent e271f5b2c2
commit da97ca61d3

View File

@ -17,7 +17,7 @@ async function bootstrap(appConfig: AppConfig, version: { FRONTEND_APP_VERSION:
...appConfig,
IS_DOCUMINE: bool(appConfig.IS_DOCUMINE),
RULE_EDITOR_DEV_ONLY:
typeof ruleEditorDevOnly === 'string' ? ruleEditorDevOnly.toLowerCase() === 'true' : ruleEditorDevOnly !== false,
typeof ruleEditorDevOnly === 'string' ? ruleEditorDevOnly.toLowerCase() !== 'false' : ruleEditorDevOnly !== false,
FRONTEND_APP_VERSION: version.FRONTEND_APP_VERSION,
} as AppConfig;
console.log('Started with local config: ', config);