I've been struggling with a A Serverless Function has exceeded the unzipped maximum size of 250 MB error on my monorepo.
It uses turborepo and has been working fine (deploying on Vercel) for the past couple of years.
My serverless functions are including the /.next folder which is over 900mb uncompressed. It doesn't make any sense to me.
When the build is triggered via a commit with the GitHub/Vercel integration, then the build fails. If I click Redeploy on Vercel, the build works.
Hi,
I've been struggling with a
A Serverless Function has exceeded the unzipped maximum size of 250 MB
error on my monorepo. It uses turborepo and has been working fine (deploying on Vercel) for the past couple of years.My serverless functions are including the
/.next
folder which is over 900mb uncompressed. It doesn't make any sense to me.When the build is triggered via a commit with the GitHub/Vercel integration, then the build fails. If I click Redeploy on Vercel, the build works.
I believe the issue stems from the fact that Next.js 14.0.4-canary.36 has this change applied to it.
More info on the issue can be found here.
Any help is appreciated. Thank you.