Jaita commited on
Commit
26fcff6
·
verified ·
1 Parent(s): 51e2621

Update vite.config.js

Browse files
Files changed (1) hide show
  1. 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
- react({
8
- babel: {
9
- plugins: [['babel-plugin-react-compiler']],
10
- },
11
- }),
12
- ],
13
- server: {
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
+ })