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