Spaces:
Build error
Build error
Update frontend/vite.config.ts
Browse files- frontend/vite.config.ts +1 -6
frontend/vite.config.ts
CHANGED
|
@@ -3,14 +3,9 @@ import react from '@vitejs/plugin-react'
|
|
| 3 |
|
| 4 |
export default defineConfig({
|
| 5 |
plugins: [react()],
|
|
|
|
| 6 |
build: {
|
| 7 |
outDir: 'dist',
|
| 8 |
emptyOutDir: true,
|
| 9 |
-
},
|
| 10 |
-
server: {
|
| 11 |
-
port: 3000,
|
| 12 |
-
proxy: {
|
| 13 |
-
'/api': 'http://localhost:7860'
|
| 14 |
-
}
|
| 15 |
}
|
| 16 |
})
|
|
|
|
| 3 |
|
| 4 |
export default defineConfig({
|
| 5 |
plugins: [react()],
|
| 6 |
+
root: './', // Ensure it looks in the current directory
|
| 7 |
build: {
|
| 8 |
outDir: 'dist',
|
| 9 |
emptyOutDir: true,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
}
|
| 11 |
})
|