From fa8fc3b9ed2a89e6783d237ab36db43a9aacb533 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Sun, 16 Nov 2025 08:49:01 +0000 Subject: [PATCH] completionId: cgen-382bc2179bfc4532b1f51b308650cd74 cgen-382bc2179bfc4532b1f51b308650cd74 --- client/pages/dashboards/NexusDashboard.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/pages/dashboards/NexusDashboard.tsx b/client/pages/dashboards/NexusDashboard.tsx index 11375297..812f395a 100644 --- a/client/pages/dashboards/NexusDashboard.tsx +++ b/client/pages/dashboards/NexusDashboard.tsx @@ -36,7 +36,7 @@ import { ToggleRight, } from "lucide-react"; -const API_BASE = import.meta.env.VITE_API_BASE || ""; +const getApiBase = () => typeof window !== "undefined" ? window.location.origin : ""; type ViewMode = "creator" | "client";