Skip to content

Commit

Permalink
fix statics
Browse files Browse the repository at this point in the history
  • Loading branch information
eldalai committed Nov 24, 2023
1 parent 85bf2c2 commit 552319f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 5 additions & 2 deletions edagames/settings/prod.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
{
Expand Down
7 changes: 7 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@
"maxLambdaSize": "15mb",
"runtime": "python3.9"
}
},
{
"src": "build_files.sh",
"use": "@vercel/static-build",
"config": {
"distDir": "staticfiles_build"
}
}
],
"routes": [
Expand Down

0 comments on commit 552319f

Please sign in to comment.