Vercel - Problem deploy app nextjs
Unanswered
Dutch posted this in #help-forum
DutchOP
When building the app, the folder size is 400Mb.
When trying to deploy Vercel via CLI, the following error appears: File size limit exceeded.
Can anyone explain the problem to me, and if I change the paid plan, will it work?
Is there any solution
Thank you very much
When trying to deploy Vercel via CLI, the following error appears: File size limit exceeded.
Can anyone explain the problem to me, and if I change the paid plan, will it work?
Is there any solution
Thank you very much
6 Replies
Toyger
afaik it's limitations of AWS lambdas, 250MB unzipped, so increasing your plan will not affect anything.
you need to decrease your bundle size, by removing/replacing things that take a lot of space
you need to decrease your bundle size, by removing/replacing things that take a lot of space
Yellow-faced Grassquit
I am unsure if the project gets automatically bundled by something when deployed to Vercel, however you might want to look into using a custom bundler, specifically webpack as showcased in this doc!
@Yellow-faced Grassquit https://nextjs.org/docs/app/api-reference/next-config-js/webpack
DutchOP
Thank you very much
@Dutch Thank you very much
Yellow-faced Grassquit
no worries, good luck!