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:
parent
33787e03da
commit
8faaf9ab13
@ -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,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user