import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react'; // Ops Console UI. Dev server on 5174 (5173 is the OKR app). Proxies /api/v1 + /healthz to // the read-only console API (default :3010) so the axios client uses a relative baseURL. export default defineConfig({ plugins: [react()], server: { port: 5174, proxy: { '/api/v1': { target: 'http://127.0.0.1:3010', changeOrigin: true }, '/healthz': { target: 'http://127.0.0.1:3010', changeOrigin: true }, }, }, });