import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' export default defineConfig({ plugins: [react()], server: { port: 5173, proxy: { // Vite dev server proxies API + healthz to a running edgeguard-api. // Production: HAProxy fronts both edgeguard-api (UI + /api/*) on the // same vhost. '/api': { target: 'http://127.0.0.1:9443', changeOrigin: true, }, '/healthz': { target: 'http://127.0.0.1:9443', changeOrigin: true, }, }, }, build: { outDir: 'dist', sourcemap: false, }, })