import { defineConfig } from "vite"; import react from "@vitejs/plugin-react"; // The build output (web/dist) is embedded into the Go binary, so the default // outDir `dist` is exactly what embed.go expects. In dev, /api and /healthz are // proxied to the gateway (run it with --mock for sample data) so `pnpm dev` // drives the real handlers. export default defineConfig({ plugins: [react()], build: { outDir: "dist", emptyOutDir: true }, server: { host: true, port: 5182, proxy: { "/api": "http://127.0.0.1:8480", "/healthz": "http://127.0.0.1:8480", }, }, });