diff --git a/front/src/Enum/EnvironmentVariable.ts b/front/src/Enum/EnvironmentVariable.ts index df8ec7e6..83a820b3 100644 --- a/front/src/Enum/EnvironmentVariable.ts +++ b/front/src/Enum/EnvironmentVariable.ts @@ -5,8 +5,8 @@ declare global { } const getEnv = (key: string): string | undefined => { - if (!global.window || !global.window.env) { - return; + if (global.process?.env) { + return global.process.env[key]; } const value = global.window.env[key]; if (value === "") {