Next.js Cheatsheet
NewApp Router reference — routing, data fetching, server actions, middleware, and rendering.
Frequently Asked Questions
Is this cheatsheet focused on the App Router or the old Pages Router?
It is clearly App Router-focused. The categories and entries cover app directory pages, nested layouts, dynamic segments, route groups, parallel routes, server actions, and rendering strategies rather than `pages/`-router patterns.
Does it include dynamic routes like catch-all segments and route groups?
Yes. The Routing section includes dynamic segment patterns such as catch-all and optional catch-all routes, plus route groups and parallel route slots.
Can I look up caching and revalidation patterns here?
Yes. The Data Fetching section includes entries around fetch caching, disabling cache, time-based revalidation, and fetch tags, so it is useful for the questions people usually hit after the first `fetch()` works.
Does it cover metadata and the built-in optimization components too?
It does. There are dedicated categories for Metadata & SEO and for Image/Font/Link optimization components, not just routing examples.
Can I test a route or run a server action from this page?
No. This component only renders searchable reference cards with copy buttons; it does not execute Next.js code or spin up a sample app.