24 lines
401 B
JavaScript
24 lines
401 B
JavaScript
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,
|
|
hmr: {
|
|
clientPort: 443,
|
|
protocol: 'wss'
|
|
},
|
|
proxy: {
|
|
'/api': {
|
|
target: 'https://api.argeict.net',
|
|
changeOrigin: true,
|
|
secure: true
|
|
}
|
|
}
|
|
}
|
|
})
|
|
|