vercel / nft

Node.js dependency tracing utility
https://npmjs.com/@vercel/nft
MIT License
1.31k stars 136 forks source link

Next.js 14.0.4-canary.36 breaks build of turborepo on Vercel - Works up to 14.0.4-canary.35 #397

Open avitorio opened 7 months ago

avitorio commented 7 months ago

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.