Spaces:
Sleeping
Sleeping
Upload vite.config.js
Browse files- 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:
|
| 10 |
proxy: {
|
| 11 |
'/api': {
|
| 12 |
-
target: 'http://localhost:
|
| 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:
|
| 21 |
proxy: {
|
| 22 |
'/api': {
|
| 23 |
-
target: 'http://localhost:
|
| 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 |
})
|