Skip to content

Commit

Permalink
fix: VITE_SINGLETON_MODE flag not working.
Browse files Browse the repository at this point in the history
  • Loading branch information
riccox committed Nov 4, 2024
1 parent cc970b3 commit 3b5be66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/conn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3b5be66

Please sign in to comment.