Skip to content

armgit / E2B

Public Imported from GitHub
0

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

Fix client side check

Tomas Valentae504913d33e6
diff --git a/db/credentials.ts b/db/credentials.ts
index 61c3383e6..821fff452 100644
--- a/db/credentials.ts
+++ b/db/credentials.ts
@@ -1,4 +1,4 @@
-const baseURL = typeof window !== undefined
+const baseURL = typeof window !== 'undefined'
? `${window.location.protocol}//${window.location.host}`
: '<THIS-SHOULD-BE-URL>'