import react from "@vitejs/plugin-react"; import { defineConfig } from "vite"; export default defineConfig({ plugins: [react()], server: { // The Vue dashboard owns 5173; v2 runs beside it during the migration. port: 5174, // Proxies the API to a locally running archie-ui so the frontend can be // developed without rebuilding Go. changeOrigin stays false: archie-ui // refuses a mutation whose Origin does not match its Host, and the // browser's Origin is this dev server. proxy: { "/api": { target: "http://127.0.0.1:8484", changeOrigin: false }, "/health": { target: "http://127.0.0.1:8484", changeOrigin: false }, "/webhooks": { target: "http://127.0.0.1:8484", changeOrigin: false }, "/oauth2": { target: "http://127.0.0.1:8484", changeOrigin: false }, }, }, });