nextdoctor

nextdoctor diagnose

A read-only static scan of the current project. Safe to run against any project, including ones you don't own — it never writes anything.

$nextdoctor diagnose

What it checks

  • Next.js version, and whether you're on Turbopack without memory eviction (versions before 16.3)
  • onDemandEntries tuning — or the lack of it
  • next.config presence and known risky flags (e.g. an explicitly disabled eviction setting)
  • Monorepo detection (turbo/nx/pnpm workspaces)

Reading the output

Each finding shows its severity (CRITICAL, WARNING, or INFO), whether it's auto-fixable and how, and a summary line at the end with a concrete next step when applicable — e.g. how many findings nextdoctor fix can apply automatically.