enzostvs HF staff commited on
Commit
b42246f
β€’
1 Parent(s): 486eb7d

vite config allow absolute path

Browse files
Files changed (1) hide show
  1. vite.config.ts +3 -2
vite.config.ts CHANGED
@@ -1,6 +1,6 @@
1
  import { sveltekit } from '@sveltejs/kit/vite';
2
  import { enhancedImages } from '@sveltejs/enhanced-img';
3
- import { defineConfig, searchForWorkspaceRoot } from 'vite';
4
 
5
  export default defineConfig({
6
  plugins: [
@@ -9,7 +9,8 @@ export default defineConfig({
9
  ],
10
  server: {
11
  fs: {
12
- allow: ["..", "../..", "../../..", "../../../..", "../../../../.."]
 
13
  }
14
  }
15
  });
 
1
  import { sveltekit } from '@sveltejs/kit/vite';
2
  import { enhancedImages } from '@sveltejs/enhanced-img';
3
+ import { defineConfig } from 'vite';
4
 
5
  export default defineConfig({
6
  plugins: [
 
9
  ],
10
  server: {
11
  fs: {
12
+ strict: false,
13
+ allow: [".."]
14
  }
15
  }
16
  });