Spaces:
Sleeping
Sleeping
Update vite.config.js
Browse files- vite.config.js +13 -14
vite.config.js
CHANGED
|
@@ -3,18 +3,17 @@ import react from '@vitejs/plugin-react'
|
|
| 3 |
|
| 4 |
// https://vite.dev/config/
|
| 5 |
export default defineConfig({
|
| 6 |
-
plugins: [
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
proxy: {
|
| 15 |
-
'/api': 'http://127.0.0.1:8000',
|
| 16 |
-
},
|
| 17 |
},
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
|
|
|
|
|
|
|
|
| 3 |
|
| 4 |
// https://vite.dev/config/
|
| 5 |
export default defineConfig({
|
| 6 |
+
plugins: [react()],
|
| 7 |
+
preview: {
|
| 8 |
+
host: "0.0.0.0",
|
| 9 |
+
port: process.env.PORT?Number(process.env.PORT):4173,
|
| 10 |
+
strictPort: true,
|
| 11 |
+
allowedHosts: [
|
| 12 |
+
'jaita-chatbot-react-frontend-v1.hf.space'
|
| 13 |
+
]
|
|
|
|
|
|
|
|
|
|
| 14 |
},
|
| 15 |
+
server: {
|
| 16 |
+
//hmr:false
|
| 17 |
+
host: "0.0.0.0"
|
| 18 |
+
}
|
| 19 |
+
})
|