hosting-platform/frontend/vite.config.js

30 lines
515 B
JavaScript
Raw Normal View History

2026-01-11 14:38:39 +00:00
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
export default defineConfig({
plugins: [react()],
server: {
host: '0.0.0.0',
port: 3001,
cors: true,
allowedHosts: [
'argeict.net',
'www.argeict.net',
'176.96.129.77',
'localhost'
],
hmr: {
clientPort: 443,
protocol: 'wss'
},
proxy: {
'/api': {
target: 'https://api.argeict.net',
changeOrigin: true,
secure: true
}
}
}
})