vercel-log-debug

Installation
SKILL.md

Vercel log debugging

Turn raw Vercel runtime logs into a ranked report: biggest issues → root cause → fix.

Requires the Vercel CLI (vercel, or npx vercel / bunx vercel) and a logged-in account. Examples below use vercel.

Workflow

  1. Verify link & scope. In the project dir run vercel ls --prod 2>&1 | head. If it errors with Can't find ... under the context "<wrong-team>", the CLI is on the wrong scope: run vercel link (pick the right team/project) or pass --scope <team> on every command. vercel inspect in particular defaults to the personal scope and often needs --scope.

  2. Pull error logs — ALWAYS pass --no-branch. vercel logs silently filters by the current git branch. On a feature branch that returns zero production logs (message: No logs found ... on branch <x>). This is the #1 trap. Fetch expanded JSON into a scratch dir:

    work=$(mktemp -d)
    vercel logs --environment production --no-branch --level error \
      --since 24h --limit 1000 --expand --json 2>/dev/null > "$work/prod_errors.jsonl"
    wc -l "$work/prod_errors.jsonl"
    

    Retention is short (recent window only), so --since 24h may still return only the last few minutes. That's expected, not an error. If --limit is hit fast, one error is flooding.

Installs
6
Repository
alon710/configs
GitHub Stars
2
First Seen
Oct 2, 2026