diff --git a/frontend/src/config.ts b/frontend/src/config.ts index 5eb1285c1..f0e8b03bd 100644 --- a/frontend/src/config.ts +++ b/frontend/src/config.ts @@ -9,7 +9,7 @@ const getEnvVariable = (name: string): string => { // If global value equals its placeholder value 'placeholderValue', it is considered undefined const placeholderValue: string = '${' + name + '}' - if (globalValue === placeholderValue || !globalValue) + if (globalValue === placeholderValue || globalValue === undefined) throw new Error( `Global variable "${name}" is not set. Verify that your .env file is up to date with .env.example` )