Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Add reasonable default url

Tomas Valenta5494d939811a
diff --git a/db/credentials.ts b/db/credentials.ts
index 29f8d5345..ab674c9e7 100644
--- a/db/credentials.ts
+++ b/db/credentials.ts
@@ -8,6 +8,6 @@ const baseURL = typeof window !== 'undefined'
// The SUPABASE_URL is actually not used but we need a valid URL for the SSR render.
export const clientCreds = {
- supabaseUrl: baseURL ? `${baseURL}/api/supabase` : process.env.SUPABASE_URL,
+ supabaseUrl: baseURL ? `${baseURL}/api/supabase` : 'http://localhost:3000/api/supabase',
supabaseKey: process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY,
}