From 0433352ee21c60a2cb97848cd95039a1bd131e0b Mon Sep 17 00:00:00 2001 From: dekzter Date: Tue, 11 Mar 2025 19:20:17 -0400 Subject: [PATCH] static file changes --- dispatcharr/settings.py | 2 +- docker/nginx.conf | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dispatcharr/settings.py b/dispatcharr/settings.py index b275bf66..e6831b7e 100644 --- a/dispatcharr/settings.py +++ b/dispatcharr/settings.py @@ -139,7 +139,7 @@ STATIC_ROOT = BASE_DIR / 'static' # Directory where static files will be collec # Adjust STATICFILES_DIRS to include the paths to the directories that contain your static files. STATICFILES_DIRS = [ - os.path.join(BASE_DIR, 'frontend/build/assets'), # React build static files + os.path.join(BASE_DIR, 'frontend/dist'), # React build static files ] diff --git a/docker/nginx.conf b/docker/nginx.conf index 847300a6..e0303ffe 100644 --- a/docker/nginx.conf +++ b/docker/nginx.conf @@ -7,8 +7,8 @@ server { uwsgi_pass unix:/app/uwsgi.sock; } - location /static/ { - root /app; # Base directory for static files + location /assets/ { + root /app/static; # Base directory for static files } # admin disabled when not in dev mode