enzostvs HF staff commited on
Commit
fd1f23b
·
1 Parent(s): d17c1bc
Files changed (2) hide show
  1. Dockerfile +0 -3
  2. vite.config.ts +2 -1
Dockerfile CHANGED
@@ -17,9 +17,6 @@ RUN npm install
17
  COPY --chown=1000 . .
18
  RUN chmod +x entrypoint.sh
19
 
20
- # run command to give user right permission to write in data volume
21
- RUN chown -R 1000:1000 /usr/src/app
22
-
23
  # Expose the application port (assuming your app runs on port 3000)
24
  EXPOSE 3000
25
 
 
17
  COPY --chown=1000 . .
18
  RUN chmod +x entrypoint.sh
19
 
 
 
 
20
  # Expose the application port (assuming your app runs on port 3000)
21
  EXPOSE 3000
22
 
vite.config.ts CHANGED
@@ -1,6 +1,7 @@
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 +10,7 @@ export default defineConfig({
9
  ],
10
  server: {
11
  fs: {
12
- allow: [searchForWorkspaceRoot(process.cwd()),'/uploads']
13
  }
14
  }
15
  });
 
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
  ],
11
  server: {
12
  fs: {
13
+ allow: [searchForWorkspaceRoot(process.cwd()), env.PUBLIC_FILE_UPLOAD_DIR]
14
  }
15
  }
16
  });