Files
PolyHermes/frontend/vite.config.ts
T

23 lines
415 B
TypeScript
Raw Normal View History

2025-11-21 04:32:08 +08:00
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
server: {
port: 3000,
proxy: {
'/api': {
target: 'http://localhost:8000',
changeOrigin: true
},
'/ws': {
target: 'ws://localhost:8000',
ws: true,
changeOrigin: true
2025-11-21 04:32:08 +08:00
}
}
}
})