Skip to content

Commit

Permalink
Fix prod build
Browse files Browse the repository at this point in the history
Fixes "Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/html". Strict MIME type" issue when reloading on nested routes.
  • Loading branch information
alan2207 authored May 23, 2024
1 parent b7a4f49 commit 6a0c15d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"build": "tsc && vite build --base=/",
"preview": "vite preview",
"test": "vitest",
"prepare": "husky",
Expand Down

0 comments on commit 6a0c15d

Please sign in to comment.