From 0950c860365fc6daa2e2ac0860a07bf47d7644de Mon Sep 17 00:00:00 2001 From: Torsten Dittmann Date: Tue, 14 Feb 2023 17:55:30 +0100 Subject: [PATCH] fix: convert nullish to undefined --- src/lib/system.ts | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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 = {