From ea3b0696f463f3f31399298964235e38c90d9f6c Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Sat, 4 Oct 2025 21:41:16 +0000 Subject: [PATCH] Restore strict ensureSupabase cgen-c113a6366c224046a2ff99b8c1709030 --- client/lib/aethex-database-adapter.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/client/lib/aethex-database-adapter.ts b/client/lib/aethex-database-adapter.ts index 5a3e766e..5323e6b4 100644 --- a/client/lib/aethex-database-adapter.ts +++ b/client/lib/aethex-database-adapter.ts @@ -23,16 +23,8 @@ export interface AethexUserProfile extends UserProfile { const isNonEmptyString = (value: unknown): value is string => typeof value === "string" && value.trim().length > 0; -const isTestEnvironment = - typeof process !== "undefined" && - (process.env?.NODE_ENV === "test" || process.env?.VITEST); - const ensureSupabase = () => { if (!isSupabaseConfigured) { - if (isTestEnvironment) { - return; - } - throw new Error( "Supabase is not configured. Please set VITE_SUPABASE_URL and VITE_SUPABASE_ANON_KEY.", );