import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' // The Go server owns /api (including the WebSocket); Vite proxies to it in // dev so the frontend can be served with hot reload on :5173. export default defineConfig({ plugins: [react()], server: { proxy: { '/api': { target: 'http://localhost:8080', ws: true, }, }, }, })