From 8faaf9ab13bff26c92fa295d233f87edf3a2cfff Mon Sep 17 00:00:00 2001 From: Ryan Malloy Date: Sun, 1 Mar 2026 16:45:52 -0700 Subject: [PATCH] Add Vite dev proxy for search API during local development API_PROXY_TARGET env var forwards /api, /mcp, /health to the search backend container, enabling E2E chat testing without Caddy. --- docs/astro.config.mjs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/astro.config.mjs b/docs/astro.config.mjs index be8771b..432bef5 100644 --- a/docs/astro.config.mjs +++ b/docs/astro.config.mjs @@ -170,6 +170,13 @@ export default defineConfig({ clientPort: 443, }, }), + proxy: process.env.API_PROXY_TARGET + ? { + "/api": { target: process.env.API_PROXY_TARGET }, + "/mcp": { target: process.env.API_PROXY_TARGET }, + "/health": { target: process.env.API_PROXY_TARGET }, + } + : undefined, }, },