Free auditStart free
GuideError · CDN and hosting errors

Vercel build failed

Find the real error in a failed Vercel build log, check memory, disk and 45 minute limits, and fix pnpm, output directory and build command mistakes.

4 min
read
3
sources
Oct 31, 2026
updated
Scaplet Editorial Team
author
In one line

A failed Vercel build means the Build step exited with an error, and the last red line usually hides the cause. Scroll up in the build log to the first Error, reproduce it with your build command locally, then check the documented limits: 8192 MB memory, 32 GB disk and 45 minutes. Configuration errors such as a wrong output directory have specific fixes.

30-second check

Where does your site stand?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?
Summarize this page withChatGPTClaudePerplexityGoogleAI Mode

At a glance

4 facts from the sources below
8192 MB
Build memory
32 GB
Build disk
45 minutes
Max build time
4
Build CPUs
01Check it

Where in the pipeline it failed

Vercel says the total build duration includes three steps: building, checking and assigning domains. A deployment can also fail before any build log exists. Vercel lists these as examples: an invalid vercel.json committed, Ignored Build Steps, commits from a contributor who is not a team member, and a Marketplace integration resource that failed to provision. In those cases the Building accordion is missing and an overlay shows the error instead.

Order of work for a Git deployment, per Vercel's docs
git push
  |
  v
[Provisioning Integrations]  Marketplace resources, deployment actions (if connected)
  |
  v
[Build]  Install Command -> Build Command   <- most failures happen here
  |
  v
[Checking]
  |
  v
[Assigning domains]
02How it works

Read the log the right way

  1. 1

    Open the failed deployment

    Dashboard, your project, Deployments, then the deployment with the error status. In Deployment Details expand the Building accordion.

  2. 2

    Find the first Error, not the last

    Scroll to the red section where "Error" is mentioned. Vercel warns that the last mention often says only something like yarn run build exited with 1. The informative line is a few lines above.

  3. 3

    Reproduce it locally

    Vercel recommends building locally first, using your project's own build command. That catches problems in your code or dependencies before a deploy does.

  4. 4

    Turn on the system report if you suspect memory

    Set VERCEL_BUILD_SYSTEM_REPORT=1 as an environment variable to get a resource report for every deployment. By default it appears only when a problem is detected.

Reader's own project: run what Vercel runs (swap in your build command)
npm ci
npm run build
echo "exit code: $?"

If the build passes locally and fails on Vercel, compare the Node.js version, the package manager and the Root Directory. Vercel derives the build cache key from those same settings, so they are the ones that differ most often between machines.

04Errors from Vercel's error list and how each is fixed

Documented configuration failures

Error

Missing public directory

Cause
The output directory is missing, empty or invalid
Fix
Check the Output Directory in project settings, then the build command and Root Directory, and confirm files are generated locally
Error

Recursive invocation of commands

Cause
The Build Command runs vercel build itself
Fix
Make it call your framework's build command, or turn off Override to use the Framework Preset default
Error

ERR_PNPM_UNSUPPORTED_ENGINE

Cause
engines.pnpm in package.json does not match the running pnpm version
Fix
Enable Corepack and set packageManager, or remove engines.pnpm
Error

Team access required to deploy.

Cause
The commit author has no Vercel account, or Manual Approval is on
Fix
A team Owner approves membership, or the author creates an account and links their Git provider
package.json: keep engines.pnpm and packageManager in step (from Vercel's docs)
{
  "engines": {
    "pnpm": "^7.5.1"
  },
  "packageManager": "pnpm@7.5.1"
}

With that file, set the environment variable ENABLE_EXPERIMENTAL_COREPACK to 1. Vercel adds that engine-strict cannot be used to solve this error, because it only handles dependencies.

06Explained

What a failed build means for crawlers

A build failure is not an HTTP response, so crawlers do not see it directly. They see whatever the domain serves at the moment, so the risk is a deployment that builds but ships wrong output, such as a missing output directory producing 404s. After a fix, request your key URLs and confirm status codes; Google says URLs already indexed that return 4xx are removed from the index, and 5xx URLs are eventually dropped. For the runtime side of Vercel failures see Vercel 500.
Questions

Asked a lot.

3 questions people ask next, answered from the sources on this page.

01What is the Vercel build time limit?

A build can last a maximum of 45 minutes, covering building, checking and assigning domains. Past that, the deployment is cancelled and the error appears in the build logs.

02Why is there no build log on my failed Vercel deployment?

Vercel can fail a deployment before the build starts, for example with an invalid vercel.json, an Ignored Build Step, a commit from a non-member, or a Marketplace resource that failed to provision. The error appears in an overlay instead.

03How do I redeploy on Vercel without the cache?

Use Redeploy on the deployment with Use existing Build Cache unchecked, or run vercel --force, or set VERCEL_FORCE_NO_BUILD_CACHE to 1.

Sources · 3

Every fact, linked and dated.

Official docs first. The date is when we last opened each page.
  • vercel.com
  • google.com
  1. 01Vercel docs: Troubleshooting Build Errorsvercel.com · checked 2026-11-01
  2. 02Vercel docs: Error Listvercel.com · checked 2026-11-01
  3. 03How HTTP status codes affect Google's crawlersdevelopers.google.com · checked 2026-11-01
Free · 2 minutes

Tools point. Agencies advise. This one ships.

Run the free audit, then approve the fixes. Every change can be undone.

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • 0→7 ChatGPT citations in six weeks Paylane