import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react'; // During `npm run dev`, proxy the bridge WebSocket so you can develop the UI // with hot-reload while the bridge runs on :8080. export default defineConfig({ plugins: [react()], server: { host: true, // expose dev server on the LAN too proxy: { '/ws': { target: 'ws://localhost:8080', ws: true }, '/api': { target: 'http://localhost:8080' }, }, }, });