import { defineConfig } from "vite"; import react from "@vitejs/plugin-react"; export default defineConfig({ plugins: [react()], // The SPA talks DIRECTLY to the bus (signed HTTPS control plane + nats.ws data // plane), so there is no gateway and no /api proxy. The dev server runs on 5173 to // match the bus CORS allowlist (--cors-origins http://localhost:5173). Point the // SPA at a cluster node with VITE_BUS_HTTP / VITE_BUS_WS (see busService.ts). server: { host: true, port: 5173, }, });