Fix Vite CORS and HMR for HTTPS
This commit is contained in:
parent
4d5565f0a0
commit
f8d94507a7
|
|
@ -6,10 +6,16 @@ export default defineConfig({
|
|||
server: {
|
||||
host: '0.0.0.0',
|
||||
port: 3001,
|
||||
cors: true,
|
||||
hmr: {
|
||||
clientPort: 443,
|
||||
protocol: 'wss'
|
||||
},
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'http://176.96.129.77:5000',
|
||||
target: 'https://api.argeict.net',
|
||||
changeOrigin: true,
|
||||
secure: true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue