New advertisers: 50% off your first month with code FIRSTMONTHSee slots
vercel avatar

Runtime Debug

Debug workflow for runtime-bundle and module-resolution regressions, including CI env mirroring and stack trace visibility.

skills.sh installs
990
GitHub stars
143.6K
last updated
May 16, 2026
View on GitHub

What it does

  • Covers local repro of CI failures, stack trace visibility, user-bundle regression guardrails, and webpack stats diffing
  • Includes IS_WEBPACK_TEST=1 and NEXT_SKIP_ISOLATE=1 env mirroring, __NEXT_SHOW_IGNORE_LISTED=true for full dev server traces, and route trace inspection
  • Adds a test-start-webpack assertion that fails when traced server chunks contain forbidden internals like node:stream/promises
  • Designed for Next.js maintainers diagnosing unexpected module inclusions, bundle size regressions, and CI failures tied to module.compiled.js selection

Install

$ npx -y skills add vercel/next.js --skill runtime-debug -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Runtime Debug

Use this skill when reproducing runtime-bundle, module-resolution, or user-bundle inclusion regressions.

Local Repro Discipline

  • Mirror CI env vars when reproducing CI failures.
  • Key variables: IS_WEBPACK_TEST=1 forces webpack (turbopack is default), NEXT_SKIP_ISOLATE=1 skips packing next.js.
  • For module-resolution validation, always rerun without NEXT_SKIP_ISOLATE=1.

Stack Trace Visibility

Set __NEXT_SHOW_IGNORE_LISTED=true to disable the ignore-list filtering in dev server error output. By default, Next.js collapses internal frames to at ignore-listed frames, which hides useful context when debugging framework internals. Defined in packages/next/src/server/patch-error-inspect.ts.

User-Bundle Regression Guardrail

When user next build starts bundling internal Node-only helpers unexpectedly:

Details

Repository
github.com/vercel/next.js
Categories
Debugging, Frontend & UI Code
First seen
Apr 16, 2026

More from vercel/next.js

All 14

Similar to Runtime Debug

More Debugging