diff --git a/backend/requirements.txt b/backend/requirements.txt index 0cd9ec48..976fa2b4 100644 --- a/backend/requirements.txt +++ b/backend/requirements.txt @@ -8,8 +8,8 @@ djangorestframework==3.16.1 drf-spectacular==0.28.0 Pillow==11.3.0 redis==6.4.0 -requests==2.32.4 +requests==2.32.5 ryd-client==0.0.6 uvicorn==0.35.0 whitenoise==6.9.0 -yt-dlp[default]==2025.8.11 +yt-dlp[default]==2025.8.20 diff --git a/docker_assets/nginx.conf b/docker_assets/nginx.conf index 6168cdf6..8c4a15ec 100644 --- a/docker_assets/nginx.conf +++ b/docker_assets/nginx.conf @@ -50,7 +50,17 @@ server { root /app/static; index index.html; + location ~* .(?:css|js)$ { + try_files $uri $uri/ /index.html =404; + } + + location = /index.html { + add_header Cache-Control 'no-store'; + expires 0; + } + location / { + add_header Cache-Control 'no-store'; try_files $uri $uri/ /index.html =404; } } diff --git a/frontend/src/functions/APIClient.ts b/frontend/src/functions/APIClient.ts index 5b464f3d..02a8d1d2 100644 --- a/frontend/src/functions/APIClient.ts +++ b/frontend/src/functions/APIClient.ts @@ -49,7 +49,7 @@ const APIClient = async ( const data = await response.json(); throw { status: response.status, - message: data?.message || 'An error occurred while processing the request.', + message: data?.message || data?.error || 'An error occurred while processing the request.', } as ApiError; } diff --git a/backend/requirements-dev.txt b/requirements-dev.txt similarity index 86% rename from backend/requirements-dev.txt rename to requirements-dev.txt index 5795d862..0983c774 100644 --- a/backend/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,4 +1,4 @@ --r requirements.txt +-r backend/requirements.txt ipython==9.4.0 pre-commit==4.3.0 pylint-django==2.6.1