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.
This commit is contained in:
Ryan Malloy 2026-03-01 16:45:52 -07:00
parent 33787e03da
commit 8faaf9ab13

View File

@ -170,6 +170,13 @@ export default defineConfig({
clientPort: 443, 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,
}, },
}, },