From 552319fa9f2378c3cc9cdfb3bccbe75b156eefcb Mon Sep 17 00:00:00 2001 From: Gabriel Flores Date: Thu, 23 Nov 2023 08:55:16 -0300 Subject: [PATCH] fix statics --- edagames/settings/prod.py | 7 +++++-- vercel.json | 7 +++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/edagames/settings/prod.py b/edagames/settings/prod.py index dbe7bc7..bf787ce 100644 --- a/edagames/settings/prod.py +++ b/edagames/settings/prod.py @@ -69,8 +69,11 @@ ROOT_URLCONF = 'edagames.urls' -STATIC_URL = 'static/' -STATIC_ROOT = os.path.join(BASE_DIR, 'static') +STATICFILES_DIRS = os.path.join(BASE_DIR, 'static'), +STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles_build', 'static') + +# STATIC_URL = 'static/' +# STATIC_ROOT = os.path.join(BASE_DIR, 'static') TEMPLATES = [ { diff --git a/vercel.json b/vercel.json index 663aa9f..09e6e5a 100644 --- a/vercel.json +++ b/vercel.json @@ -7,6 +7,13 @@ "maxLambdaSize": "15mb", "runtime": "python3.9" } + }, + { + "src": "build_files.sh", + "use": "@vercel/static-build", + "config": { + "distDir": "staticfiles_build" + } } ], "routes": [