diff --git a/global.d.ts b/global.d.ts index 7b53e77a..60fe394b 100644 --- a/global.d.ts +++ b/global.d.ts @@ -5,6 +5,6 @@ declare namespace NodeJS { readonly NEXT_PUBLIC_MS_APP_CLIENT_ID: string; readonly NEXT_PUBLIC_MS_APP_REDIRECT_URL: string; readonly BACKEND_SERVER_URL: string; - readonly DEBUG_MODE: boolean; + readonly DEBUG_MODE: string; } } diff --git a/src/env.ts b/src/env.ts index e98a9fc3..4026dbf9 100644 --- a/src/env.ts +++ b/src/env.ts @@ -1,4 +1,4 @@ export const MS_APP_CLIENT_ID = process.env.NEXT_PUBLIC_MS_APP_CLIENT_ID; export const MS_APP_REDIRECT_URL = process.env.NEXT_PUBLIC_MS_APP_REDIRECT_URL; export const BACKEND_SERVER_URL = process.env.BACKEND_SERVER_URL; -export const DEBUG_MODE = process.env.DEBUG_MODE; +export const DEBUG_MODE = Boolean(process.env.DEBUG_MODE);