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
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.logorconsole.error. Open Logs in your project's sidebar. Requests with a5xxstatus show in red.
TipOn 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".
- Build logs: what happened while Vercel turned your code into a website (installing packages,
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:
- Reproduce a failed build on your laptop
- The six errors that break most deploys
- Undo a bad release with Instant Rollback
- Your deploy checklist
- Recap