Getting: Error: A Serverless Function has exceeded the unzipped maximum size of 250 MB
Unanswered
Rhinelander posted this in #help-forum
RhinelanderOP
Hi all,I'm having trouble deploying my Next.js app to Vercel. I'm currently getting this error:
If I redeploy then it works, but every time I commit to my repo it breaks and I need to click on Redeploy. Has anyone experienced this?
Additional info: This is a monorepo with turborepo.
Code is here: https://github.com/avitorio/outstatic](https://github.com/avitorio/outstatic
The deploy in question is for the
These are all the static assets:
https://github.com/avitorio/outstatic/tree/canary/apps/dev/public/
My
Here are the logs when the deploy fails: https://gist.github.com/avitorio/6c2b65e5d3a39032500063e4cb1ebf7b
When I click on Redeploy on Vercel, it works: https://gist.github.com/avitorio/8be24b8945e2714c6a7dbe2dc3fa35b2
I don't get why clicking Redeploy makes the build work, but not when it is triggered on commit via GitHub.
Any help is appreciated!
Error: A Serverless Function has exceeded the unzipped maximum size of 250 MB. : https://vercel.link/serverless-function-size
Large Dependencies Uncompressed size Compressed size
apps/dev/.next 853.5 MB 109.92 MBIf I redeploy then it works, but every time I commit to my repo it breaks and I need to click on Redeploy. Has anyone experienced this?
Additional info: This is a monorepo with turborepo.
Code is here: https://github.com/avitorio/outstatic](https://github.com/avitorio/outstatic
The deploy in question is for the
/apps/dev Next.js install.These are all the static assets:
https://github.com/avitorio/outstatic/tree/canary/apps/dev/public/
My
/public amounts to 4mb.Here are the logs when the deploy fails: https://gist.github.com/avitorio/6c2b65e5d3a39032500063e4cb1ebf7b
When I click on Redeploy on Vercel, it works: https://gist.github.com/avitorio/8be24b8945e2714c6a7dbe2dc3fa35b2
I don't get why clicking Redeploy makes the build work, but not when it is triggered on commit via GitHub.
Any help is appreciated!
7 Replies
RhinelanderOP
Thought I had this figured out
Help!
1) post the size of your next build results
2) you’ll have better luck posting on the vercel discussions page on their GitHub profile
If you suspect this is a bug or issue on Vercels behalf
RhinelanderOP
Yeah, in the end it seems to be an issue with Next.js 14.1.canary-36 and above
I’ve filled a bug report on the nextjs GitHub repo
Thanks for taking the time to answer @linesofcode ðŸ‘ðŸ¼
Thanks for taking the time to answer @linesofcode ðŸ‘ðŸ¼