Skip to content

armgit / E2B

Public Imported from GitHub
0

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

Cleanup

Tomas Valenta53ca165bcacd
diff --git a/db/credentials.ts b/db/credentials.ts
index d09e915fd..61c3383e6 100644
--- a/db/credentials.ts
+++ b/db/credentials.ts
@@ -1,4 +1,6 @@
-const baseURL = typeof window !== 'undefined' && `${window.location.protocol}//${window.location.host}`
+const baseURL = typeof window !== undefined
+ ? `${window.location.protocol}//${window.location.host}`
+ : '<THIS-SHOULD-BE-URL>'
export const credentials = {
supabaseUrl: process.env.SUPABASE_URL || `${baseURL}/api/supabase`,