Files
rag-technical-docs-assistant/examples/vite-proxy.config.js
11linear11 a73a496c54 feat(backend): deliver Phase 3 document and voice integration
Add authenticated upload, review, retry and knowledge-selection HTTP flows with bounded JSON processing and frozen OCR policy.

Preserve Gemini/OpenAI provider selection and fenced lifecycle semantics; retain FAQ preambles and uncertain vision candidates, and expose opt-in uncalibrated voice transport diagnostics.

Include frontend integration examples, aligned contracts and deterministic regressions. Validation: 1767 provider-free tests passed; all 404 PostgreSQL scenarios have passing evidence across the documented runs.
2026-10-09 17:43:52 -04:00

12 lines
506 B
JavaScript

/* Merge server into the frontend developer's Vite configuration.
* Targets port 8080 (matching Docker Compose host port and direct-run python -m app.server --port 8080).
* changeOrigin: false preserves the browser's Host (localhost:5173) and Origin headers.
* ws: true proxies WebSocket connections for Live voice streams.
*/
export default {
server: {
host: 'localhost', port: 5173, strictPort: true,
proxy: {'/api': {target: 'http://127.0.0.1:8080', ws: true, changeOrigin: false}}
}
};