diff --git a/mcp-server/dashboard.ts b/mcp-server/dashboard.ts index 8947267..cc8d005 100644 --- a/mcp-server/dashboard.ts +++ b/mcp-server/dashboard.ts @@ -1,4 +1,6 @@ -const GW = window.location.origin; +// Detect if we're behind nginx (/lakehouse/ prefix) or direct (:3700) +const base = window.location.pathname.startsWith("/lakehouse") ? "/lakehouse" : ""; +const GW = window.location.origin + base; let simData: any = null; let currentDay = 0;