We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5af191 commit 143aaa6Copy full SHA for 143aaa6
vite.config.ts
@@ -4,5 +4,17 @@ import { defineConfig } from 'vite'
4
// https://vitejs.dev/config/
5
export default defineConfig({
6
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
+ },
19
base:'./',
20
})
0 commit comments