From e09901b701a612b441aa5c50a19c65692fb83f1b Mon Sep 17 00:00:00 2001 From: Ty Balascio Date: Fri, 25 Sep 2026 07:01:20 -0700 Subject: [PATCH] chore(fe): vite dev proxy for local FastAPI (dev-only, not in Docker build) --- frontend/vite.config.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index d6d3d75..b1b2622 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -5,4 +5,11 @@ import sveltePreprocess from 'svelte-preprocess'; export default defineConfig({ plugins: [svelte({ preprocess: sveltePreprocess() })], worker: { format: 'es' }, + server: { + port: 5173, + proxy: { + // Local dev: route API calls to the FastAPI backend (mock-safe). + '/api': { target: 'http://127.0.0.1:18081', changeOrigin: true } + } + } });