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.
12 lines
506 B
JavaScript
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}}
|
|
}
|
|
};
|