fix: proxy frontend API requests to backend

This commit is contained in:
bisco
2026-06-03 21:50:24 +02:00
parent 363a07c095
commit fe33b983a3
4 changed files with 21 additions and 1 deletions
+2
View File
@@ -24,6 +24,8 @@ docker compose run --rm backend python manage.py createsuperuser
PostgreSQL is not published to the host.
During local development, the Angular dev server proxies `/api`, `/api-auth`, and `/admin` to the backend container.
## Volumes
- `postgres_data`: PostgreSQL data.
+1
View File
@@ -24,6 +24,7 @@ docker compose run --rm backend python manage.py createsuperuser
- If the frontend shows an authentication error, sign in through `http://localhost:8000/admin/` or DRF login first.
- If the frontend serves a blank page, check `docker compose logs frontend`. Cache permission errors should be resolved by the configured `/tmp/angular-cache` path; restart with `docker compose up -d frontend`.
- If the frontend loads but player data does not, confirm that `frontend/proxy.conf.json` is active and restart the frontend container.
- If backend startup fails, check database readiness with `docker compose logs db`.
- If dependencies change, rebuild with `docker compose build --no-cache backend frontend`.