#Deploying a django project with static files into vercel

13 messages · Page 1 of 1 (latest)

little mesa
#

I have a small django file that contains the css,js and font in the static folder and i followed a tutorial and get some errors but fixed it then i get this error message

130 static files copied to '/vercel/path0/staticfiles_build/static'.
Installing required dependencies...
Build Completed in /vercel/output [2m]
Deploying outputs...
Error: A Serverless Function has exceeded the unzipped maximum size of 250 MB. : https://vercel.link/serverless-function-size

How to solve it! i searched but i fond the solutions are related to other frameworks like Next and Vue..etc

#

if there any free web hosting that i can preview my django app to other person to see it that will do the job for now 🙂

native root
#

Do you have a large file committed in your repo?

split epoch
#

it's definitely free

#

you can deploy both backend and frontend on Deta Space

#

it's an example

little mesa
viscid owl
#

Hope you aren't pushing your virtual environment too!

#

Try optimizing your static files and remove unreferenced static files

little mesa