Files
2026-06-29 13:46:26 +08:00

13 lines
297 B
TypeScript

import {defineConfig} from 'vite'
import react from '@vitejs/plugin-react'
export default defineConfig({
plugins: [react()],
server: {
proxy: {
'/api': { target: 'http://localhost:8000', changeOrigin: true },
'/ws': { target: 'ws://localhost:8001', ws: true },
},
},
})