diff --git a/src/utils/conn.ts b/src/utils/conn.ts index 91b0fd4..375300a 100644 --- a/src/utils/conn.ts +++ b/src/utils/conn.ts @@ -48,7 +48,7 @@ export const validateKeysRouteAvailable = (apiKey?: string): null | WarningPageD * check is singleton mode */ export const isSingletonMode = (): boolean => { - return import.meta.env.VITE_SINGLETON_MODE === 'true'; + return String(import.meta.env.VITE_SINGLETON_MODE) === 'true'; }; /** * get singleton mode config