Skip to content

Commit

Permalink
fix: make vite load everything behind the static path in dev mode, he…
Browse files Browse the repository at this point in the history
…lps fix tilt
  • Loading branch information
mcstover committed Sep 30, 2024
1 parent 96181c7 commit 60f7ec3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 60f7ec3

Please sign in to comment.