Next.js Discord

Discord Forum

A Serverless Function has exceeded the unzipped maximum size of 250 MB

Unanswered
New Guinea Freshwater Crocodile posted this in #help-forum
Open in Discord
New Guinea Freshwater CrocodileOP
I am currently experiencing issues with an application I am developing utilizing next.js and fastapi. I am hosting the api on heroku and the frontend on vercel. Since last night, deployment has been failing for the reason listed in the title and I am wondering what might be going on. I put pictures of my svg's that might be casuing this issue (I don't think so), and I also included my package.json which i dont think has any packages that would be too big. I have also included a picture of my app directory. I haven't tried to create any serverless functions purposefully

42 Replies

New Guinea Freshwater CrocodileOP
bump
@aardani here
where is the build logs.. ?
New Guinea Freshwater CrocodileOP
sec
need to see the full logs
you can just build it locally
New Guinea Freshwater CrocodileOP
sure sec
what i get when running next-build
oh wow its all... 0...
New Guinea Freshwater CrocodileOP
what does that mean
lol
that means its an error?
its just some display bug
New Guinea Freshwater CrocodileOP
ah ok
which makes debugging a bit harder
New Guinea Freshwater CrocodileOP
what do you suggest I try?
try updating Nextjs version
New Guinea Freshwater CrocodileOP
Should I try to fix the display bug?
so my login
is trolling?
and signup
cus they are basically empty right now
Try deploying it again
New Guinea Freshwater CrocodileOP
Ok
Sec
New Guinea Freshwater CrocodileOP
@aardani samething
Are my dependecies to large?
spitting out the same numbers as the build above
Ur deps seems normal. If u have suspicion that the svg might causes issue, try exporting without them :"
Debugging 101
New Guinea Freshwater CrocodileOP
do you think something like this would cause issues
i dont think it owuld but idk
Idts, its only 54kb
New Guinea Freshwater CrocodileOP
experimental: {
outputFileTracingExcludes: {
'*': [
'node_modules/@swc/core-linux-x64-gnu',
'node_modules/@swc/core-linux-x64-musl',
'node_modules/@esbuild/linux-x64',
],
},
},
You think I need to do something like this?
Brown bear
@New Guinea Freshwater Crocodile Did you end up figuring the fix for this? I'm having a similar issue
@Brown bear <@928402768207699989> Did you end up figuring the fix for this? I'm having a similar issue
New Guinea Freshwater CrocodileOP
Vercel tried to make the entire backend serverless functions, renamed it from api to server