The frontend now supports a dev proxy for API calls:
- Frontend requests `/api/...` to Vite
- Vite forwards `/api` to the backend target
Optional in `math-tutor/frontend/.env`:
```env
VITE_PROXY_TARGET="http://<BACKEND_HOST>:8000"
VITE_BACKEND_URL=""
```
`VITE_BACKEND_URL=""` keeps requests relative so they use the proxy. If you set `VITE_BACKEND_URL` to a full URL, requests bypass the proxy and CORS must be configured accordingly.
## Database (pgvector) setup
Ensure `POSTGRES_URL` and embedding env vars are in `backend/.env`: