What problem does it solve?
This guide consolidates Next.js App Router patterns and best practices to help teams build scalable, maintainable apps using server components, streaming, caching, and ISR.
Core Features & Use Cases
- Server vs Client Components: guidelines to decide between server and client components, with a split strategy for mixed needs.
- Data Fetching Patterns: default static caching, ISR, and no-store dynamic fetching with guidance on data flow for database, API, and user input.
- Routing Principles: conventions for page, layout, loading, error, and not-found routes; patterns for route groups, parallel routes, and modals.
- API Routes: proper methods, input validation, status codes, and edge runtime considerations.
- Performance & Cache: image optimization, dynamic imports, code-splitting, and bundle analysis.
- Project Structure & Metadata: recommended app layout and metadata strategies (static vs dynamic).
Quick Start
Configure your app with App Router conventions, create a server component for data fetching, and progressively convert interactive parts to client components as needed.