Get your API key

Lesson 5 of 5

Logs, rollbacks and common deploy errors

Build logs vs runtime logs, Instant Rollback, the six errors that break most deploys, and your deploy checklist.

10 min Log in to open
One step at a time, like flipping pages.

By the end of this lesson you will read the right log when a deploy breaks, undo a bad release in one click, fix the six errors that break most deploys, and own a deploy checklist you run every time.

You need: a project on Vercel with at least two production deployments, your coding agent, a terminal in the project folder · Time: 10 minutes

  1. When something breaks, first ask: did the build fail, or does the live app fail? Each has its own log.

    • Build logs: what happened while Vercel turned your code into a website (installing packages, npm run build). If the build fails, nothing new goes live: your old version keeps running. Find them by opening the deployment (the production deployment tile, or the Deployments list) and looking at the build output.
    • Runtime logs: what happens while real people use the app: every request to your server code, its status (200, 404, 500) and anything your code prints with console.log or console.error. Open Logs in your project's sidebar. Requests with a 5xx status show in red.
    Tip

    On the free Hobby plan, runtime logs are kept for only 1 hour. When a parent says "the receipt page showed an error", open Logs soon, or ask them to try again while you watch with Live mode on.

    Why?

    Looking in the wrong place is the biggest time-waster. A red build means "fix the code or settings, then push". A green build with errors in Logs means "the code runs but breaks on real data or missing settings".

Log in free to read the rest of this lesson

Every lesson is free. A free account unlocks all of them and saves your progress.

Still to come in this lesson:

  1. Reproduce a failed build on your laptop
  2. The six errors that break most deploys
  3. Undo a bad release with Instant Rollback
  4. Your deploy checklist
  5. Recap