gaialive commited on
Commit
1e1c950
·
verified ·
1 Parent(s): 94d2081

Upload vite.config.js

Browse files
Files changed (1) hide show
  1. frontend/vite.config.js +7 -5
frontend/vite.config.js CHANGED
@@ -6,10 +6,10 @@ export default defineConfig({
6
  plugins: [react()],
7
  server: {
8
  host: '0.0.0.0',
9
- port: 8501,
10
  proxy: {
11
  '/api': {
12
- target: 'http://localhost:8501',
13
  changeOrigin: true,
14
  secure: false,
15
  }
@@ -17,15 +17,17 @@ export default defineConfig({
17
  },
18
  preview: {
19
  host: '0.0.0.0',
20
- port: 8501,
21
  proxy: {
22
  '/api': {
23
- target: 'http://localhost:8501',
24
  changeOrigin: true,
25
  secure: false,
26
  }
27
  }
28
  },
29
  // Fix for permission issues in Docker
30
- cacheDir: '/tmp/vite-cache'
 
 
31
  })
 
6
  plugins: [react()],
7
  server: {
8
  host: '0.0.0.0',
9
+ port: 5173,
10
  proxy: {
11
  '/api': {
12
+ target: 'http://localhost:3000',
13
  changeOrigin: true,
14
  secure: false,
15
  }
 
17
  },
18
  preview: {
19
  host: '0.0.0.0',
20
+ port: 5173,
21
  proxy: {
22
  '/api': {
23
+ target: 'http://localhost:3000',
24
  changeOrigin: true,
25
  secure: false,
26
  }
27
  }
28
  },
29
  // Fix for permission issues in Docker
30
+ cacheDir: '/tmp/vite-cache',
31
+ // Ensure base path is correct for production
32
+ base: './'
33
  })