enzostvs HF staff commited on
Commit
2737e8d
·
1 Parent(s): fd1f23b
Files changed (1) hide show
  1. vite.config.ts +1 -2
vite.config.ts CHANGED
@@ -1,7 +1,6 @@
1
  import { sveltekit } from '@sveltejs/kit/vite';
2
  import { enhancedImages } from '@sveltejs/enhanced-img';
3
  import { defineConfig, searchForWorkspaceRoot } from 'vite';
4
- import { env } from '$env/dynamic/public';
5
 
6
  export default defineConfig({
7
  plugins: [
@@ -10,7 +9,7 @@ export default defineConfig({
10
  ],
11
  server: {
12
  fs: {
13
- allow: [searchForWorkspaceRoot(process.cwd()), env.PUBLIC_FILE_UPLOAD_DIR]
14
  }
15
  }
16
  });
 
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
  ],
10
  server: {
11
  fs: {
12
+ allow: [searchForWorkspaceRoot(process.cwd()), '/uploads', '/data/uploads']
13
  }
14
  }
15
  });