Fix Vite CORS and HMR for HTTPS

This commit is contained in:
oguz ozturk 2026-01-10 13:32:44 +03:00
parent 4d5565f0a0
commit f8d94507a7
1 changed files with 7 additions and 1 deletions

View File

@ -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
}
}
}