pranav8tripathi@gmail.com commited on
Commit
7b43468
·
1 Parent(s): a36a82c
Files changed (1) hide show
  1. vite.config.ts +23 -7
vite.config.ts CHANGED
@@ -10,15 +10,31 @@ export default defineConfig({
10
  '@': path.resolve(__dirname, './src'),
11
  },
12
  },
13
- preview: {
14
- host: '0.0.0.0',
15
- port: 7860,
16
- strictPort: true,
17
- allowedHosts: ['*', 'localhost', '127.0.0.1', 'pranav8tripathi-chopfresh.hf.space']
18
- },
19
  server: {
20
  host: '0.0.0.0',
21
  port: 3000,
22
- strictPort: true
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  }
24
  })
 
10
  '@': path.resolve(__dirname, './src'),
11
  },
12
  },
 
 
 
 
 
 
13
  server: {
14
  host: '0.0.0.0',
15
  port: 3000,
16
+ strictPort: true,
17
+ hmr: {
18
+ host: 'pranav8tripathi-chopfresh.hf.space',
19
+ protocol: 'wss',
20
+ port: 443
21
+ }
22
+ },
23
+ preview: {
24
+ host: true,
25
+ port: 7860,
26
+ strictPort: true,
27
+ headers: {
28
+ 'Access-Control-Allow-Origin': '*',
29
+ 'Access-Control-Allow-Methods': 'GET, POST, PUT, DELETE, PATCH, OPTIONS',
30
+ 'Access-Control-Allow-Headers': 'X-Requested-With, content-type, Authorization'
31
+ },
32
+ proxy: {
33
+ '^/.*': {
34
+ target: 'http://localhost:3000',
35
+ changeOrigin: true,
36
+ secure: false
37
+ }
38
+ }
39
  }
40
  })