Skip to content

Commit 143aaa6

Browse files
committed
fix issue in dev
1 parent b5af191 commit 143aaa6

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

vite.config.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,17 @@ import { defineConfig } from 'vite'
44
// https://vitejs.dev/config/
55
export default defineConfig({
66
plugins: [react()],
7+
server: {
8+
fs: {
9+
// Otherwise, when using npm run dev (not the built version),
10+
// http://localhost:5173/?url=... will not work, because it
11+
// expects http://localhost:5173/index.html?url=...
12+
// (while http://localhost:5173 and http://localhost:5173/ work)
13+
// Does it mean that vite thinks that http://localhost:5173/?url=...
14+
// refers to the filesystem root /?
15+
// TODO(SL): find a better solution
16+
strict: false,
17+
}
18+
},
719
base:'./',
820
})

0 commit comments

Comments
 (0)