diff --git a/crates/ui/src/main.rs b/crates/ui/src/main.rs index 0dc57dd..be6236d 100644 --- a/crates/ui/src/main.rs +++ b/crates/ui/src/main.rs @@ -5,13 +5,12 @@ fn api_base() -> String { if let Some(window) = web_sys::window() { if let Ok(origin) = window.location().origin() { if origin.contains("localhost") || origin.contains("127.0.0.1") { - // Local dev: UI on :3300, gateway on :3100 if let Ok(hostname) = window.location().hostname() { return format!("http://{}:3100", hostname); } } - // Production: nginx proxies /catalog, /query, /ai, /storage on same origin - return origin; + // Production: API proxied under /lakehouse/api/ + return format!("{}/lakehouse/api", origin); } } "http://localhost:3100".to_string()