diff --git a/src/lib/system.ts b/src/lib/system.ts index 9360f8dea..fc00cbd8e 100644 --- a/src/lib/system.ts +++ b/src/lib/system.ts @@ -4,11 +4,13 @@ export enum Mode { } export const VARS = { - APPWRITE_ENDPOINT: import.meta.env?.VITE_APPWRITE_ENDPOINT?.toString() as string | null, - GROWTH_ENDPOINT: import.meta.env?.VITE_APPWRITE_GROWTH_ENDPOINT?.toString() as string | null, - CONSOLE_MODE: import.meta.env?.VITE_CONSOLE_MODE?.toString() as string | null, - VERCEL_ENV: import.meta.env?.VITE_VERCEL_ENV?.toString() as string | null, - GOOGLE_ANALYTICS: import.meta.env?.VITE_GA_PROJECT?.toString() as string | null + APPWRITE_ENDPOINT: import.meta.env?.VITE_APPWRITE_ENDPOINT?.toString() as string | undefined, + GROWTH_ENDPOINT: import.meta.env?.VITE_APPWRITE_GROWTH_ENDPOINT?.toString() as + | string + | undefined, + CONSOLE_MODE: import.meta.env?.VITE_CONSOLE_MODE?.toString() as string | undefined, + VERCEL_ENV: import.meta.env?.VITE_VERCEL_ENV?.toString() as string | undefined, + GOOGLE_ANALYTICS: import.meta.env?.VITE_GA_PROJECT?.toString() as string | undefined }; export const ENV = {