What problem does it solve?
It helps you avoid common Next.js App Router mistakes and rapidly move from outdated Pages Router patterns to the correct App Router approaches for routing, Server Components, data fetching, caching, and metadata.
Core Features & Use Cases
- App Router architecture guidance: Covers layouts, route segments, middleware/proxy (Next.js 16 rename), and deployment expectations on Vercel.
- Server vs client correctness: Detects invalid React Server Component boundaries and issues like missing 'use client' or incorrect async usage.
- Migration and modernization rules: Flags Pages Router patterns (getServerSideProps/getStaticProps, next/router, next/head, _app/_document) and deprecated Next.js APIs (cookies/headers/params/searchParams async changes, cacheHandler→cacheHandlers, revalidateTag signature changes).
- Code-quality checks: Validates common pitfalls for routing handlers, caching, error handling, metadata (generateMetadata/export metadata), fonts, images, and bundling-related SSR issues.
Quick Start
Ask: "Review my Next.js codebase and tell me what I should change to correctly use the App Router (Server Components, route handlers, middleware→proxy, and async params/cookies/headers) and provide targeted migration fixes."