From c0bdc66037d55d6d8f7aa6e447e35baab1ceae77 Mon Sep 17 00:00:00 2001 From: bymyself Date: Mon, 3 Nov 2025 15:38:16 -0700 Subject: [PATCH] fix(vite): use dynamic base URL based on cloud distribution Instead of hardcoding base href in index.html, set vite's base config dynamically based on DISTRIBUTION === 'cloud'. This ensures proper asset loading across different deployment contexts. --- vite.config.mts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vite.config.mts b/vite.config.mts index ec725a40f7..3243828534 100644 --- a/vite.config.mts +++ b/vite.config.mts @@ -122,7 +122,7 @@ const gcsRedirectProxyConfig: ProxyOptions = { } export default defineConfig({ - base: '', + base: DISTRIBUTION === 'cloud' ? '/' : '', server: { host: VITE_REMOTE_DEV ? '0.0.0.0' : undefined, watch: {