Skip to content

Instantly share code, notes, and snippets.

@jayhale
Created May 7, 2019 12:19
Show Gist options
  • Save jayhale/5d6f55bfe66d2a72e23f315391574f5c to your computer and use it in GitHub Desktop.
Save jayhale/5d6f55bfe66d2a72e23f315391574f5c to your computer and use it in GitHub Desktop.
Django staticfiles on Zeit Now: now.json
{
"version": 2,
"name": "now-django-staticfiles",
"builds": [
{
"src": "now_build_staticfiles.sh",
"use": "@now/static-build",
"config": {
"distDir": "staticfiles_build"
}
},
{
"src": "now_app/wsgi.py",
"use": "@ardnt/now-python-wsgi",
"config": {
"maxLambdaSize": "30mb"
}
}
],
"routes": [
{
"src": "/static/(.*)",
"dest": "/static/$1"
},
{
"src": "/(.*)",
"dest": "now_app/wsgi.py"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment