The frontend uses `http://localhost:8000` by default. Set `VITE_API_BASE_URL` before starting Vite if the backend uses another address.
During local development, the frontend calls `/api`, and Vite proxies those requests to `http://127.0.0.1:8000`. This matches the `/api` path used by Nginx in Docker. If the local backend runs at another address, set `VITE_DEV_API_PROXY_TARGET` before starting Vite. `VITE_API_BASE_URL` can still override the browser-facing API base for a custom deployment.
Set `VITE_API_BASE_URL` when the backend is not available at `http://localhost:8000`.
During local development, the frontend uses `/api` and Vite proxies those requests to `http://127.0.0.1:8000`. Set `VITE_DEV_API_PROXY_TARGET` when the local backend uses another address. Docker uses the same `/api` browser path through Nginx. Set `VITE_API_BASE_URL` only when a custom deployment requires another browser-facing API base.