From 60f7ec32a3c1c6b1e5fd7952904cd28edfa90a58 Mon Sep 17 00:00:00 2001 From: Matt Stover Date: Mon, 30 Sep 2024 15:44:07 -0700 Subject: [PATCH] fix: make vite load everything behind the static path in dev mode, helps fix tilt --- vite.config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vite.config.js b/vite.config.js index 033839fa22..7abd8a6143 100644 --- a/vite.config.js +++ b/vite.config.js @@ -32,6 +32,9 @@ export default defineConfig({ '**/*.bin', '**/*.wasm', ], + // Force all assets/vite calls through /static in dev mode, compiled mode is covered by the build config below + base: isProd ? '/' : '/static/', + // Use /static for all assets in prod mode build: { assetsDir: 'static', assetsInlineLimit: (filePath, content) => {