Files
super-auto-pets-board-game/web/vite.config.ts
T
2026-07-22 23:07:29 -04:00

17 lines
393 B
TypeScript

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,
},
},
},
})