# Use 127.0.0.1, not localhost. On this machine localhost prefers ::1 and can # hit a different listener than the Windows uvicorn / Docker publish. # # Docker Compose (prod-like): leave empty and run `npm run dev` with the # host-ports overlay so Vite can proxy — or open the built SPA on :8080 # (nginx same-origin proxy; no VITE_API_BASE needed). # # Hybrid (Vite on host + API in Docker): publish API first, then: # docker compose --env-file ./backend/.env -f docker-compose.yml -f docker-compose.host-ports.yml up -d VITE_API_BASE=http://127.0.0.1:8000