What is the build size limit on vercel

I want to know what is the build size limit on vercel when deploy a nextjs project. Like on the AWS Amplify there is a strict 220mb limit of the build size, if a project exceed this limit the build will fail and there is no option for build size increase.

I am asking this because i have hosted a project on AWS Amplify and currently my build size increase due to increase in number of pages and nextjs version upgradation, so my build is failing and i am not able to update my project. So that’s why i want to know the build limit in vercel so that i can migrate my Amplify project to here.

Please respond me as soon as possible because my business is affecting very in a negative way.

1 Like

Hi there,

I understand how frustrating it can be to face build size limitations, especially when it impacts your ability to update your project. Regarding Vercel, it does not impose a strict build size limit like AWS Amplify. However, there are some general guidelines and constraints to keep in mind when deploying a Next.js project on Vercel:

  1. Build Execution:

    • Vercel uses serverless functions to build your project, and the individual function size is limited to 50 MB uncompressed (which includes the code and dependencies).
    • However, the total project build output (including static files) is not strictly capped unless you’re using a free plan, where limits on bandwidth and storage apply.
  2. Optimization for Larger Builds:

    • If your project is growing in size due to a large number of pages or Next.js upgrades, you can implement Incremental Static Regeneration (ISR) or Dynamic Routing to reduce the build size.
    • Splitting static files or lazy-loading components can also help optimize deployment.
  3. Support for Growing Projects:

    • Vercel scales well with large Next.js projects, making it a suitable alternative for your growing application.

Since your business is being negatively affected, I’d recommend reaching out directly to Vercel’s support team for personalized guidance, especially if your project has unique constraints or enterprise-level needs.

Migrating from AWS Amplify to Vercel could be a good solution given the flexibility it offers, but do review their pricing tiers and bandwidth limits if you anticipate high traffic or large-scale usage.

Let me know if you need help with the migration process!

Wishing you a smooth transition and quick resolution.

Cheers,

So you are saying there is no limit for build size in Vercel like in AWS Amplify. If i have a project whose build generated after running npm run build is of size like 850mb then this build will be deployed on vercel because of no build size limit. Am i correct.

The maximum uncompressed size for Serverless Functions is 250 MB. The build’s Cache has a 1 GB maximum. And you can find all of the details about included limits here: Limits

The Builds, Account Plans, Vercel Functions, and Troubleshooting Build Errors documentation have more details to help you get a better understanding of limits and included usage.

1 Like

I didn’t understand, clearly and the doc is also bit confusing, can i connect you over a call.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.