What problem does it solve?
Provides a single, authoritative set of recommendations to avoid common Next.js mistakes that cause runtime errors, performance regressions, and deployment issues by standardizing file conventions, component boundaries, data patterns, and runtime choices.
Core Features & Use Cases
- File conventions & routing: Clarifies app/router file roles (page, layout, route, template), dynamic segments, parallel and intercepting routes, and private folders.
- RSC boundaries & async patterns: Detects invalid async client components, non-serializable props, and correct use of Server Actions versus route handlers.
- Data and fetch patterns: Recommends Server Component reads, Server Actions for mutations, route handlers for public APIs, and techniques to avoid data waterfalls.
- Error handling & debugging: Prescribes error.tsx/global-error.tsx usage, navigation API gotchas, MCP debugging, and hydration error remedies.
- Metadata, OG images, image/font optimization, and bundling: Covers generateMetadata, next/og, next/image, next/font, server-external package handling, and migrating bundlers.
- Self-hosting & deployment guidance: Standalone output, cache handler considerations for ISR, and Docker/PM2 examples.
- Use Cases: Code reviews to catch RSC or routing issues, onboarding docs for new developers, migrating from older Next.js versions, and production readiness checks.
Quick Start
Run a focused review of your app to fix RSC boundary violations, enforce file conventions, update async request patterns, and apply image/font and bundling recommendations to prevent hydration, runtime, and deployment failures.