Next.js App Router & Routing
Structure a Next.js application with file-system routing: nested layouts, dynamic segments, navigation, URL state, route-level loading and error UI, and request-time Proxy logic.
5 objectives 6 steps about 135 min
Learn it step by step
Read the lessons in order, try the practice checks, then prove the skill with the knowledge check.
This skill page is a public outline. Its lessons and knowledge check appear here as subject-matter experts approve them.
Learning objectives
- Create nested routes, shared layouts and dynamic segments with the App Router file conventions (page, layout, loading, error, not-found).
- Navigate with Link and the router, read route params and search params, and keep filter, sort and pagination state in the URL.
- Add per-route metadata for search and sharing, loading UI and error boundaries so every route fails and waits gracefully.
- Compare file-system routing in a meta-framework with client-side routing in a single-page app (for example React Router) and explain when each fits.
- Run logic before a route renders with Proxy (formerly middleware): match paths, redirect or rewrite, and read or set cookies and headers, for example to choose a locale segment or send signed-out visitors to sign-in, while leaving real authorization checks to server code.
Lesson plan
6 steps, about 135 min · 5 of 5 lessons available so far
- Where Routing Happens: Client Routers, File-System Routes and Proxy Concept · 25 min
- Pages, Layouts and Dynamic Segments Worked example · 25 min
- Navigation and Keeping State in the URL Worked example · 20 min
- Loading, Error and Metadata per Route Concept · 20 min
- Lab: A Localized Catalog with Shareable Filters and a Members Area Lab · 30 min
- Check: Draw the Route Map Knowledge check · 10 questions
Practise it
Scaffold a Next.js catalog with a shared layout, list and dynamic detail routes, filters and pagination in search params, custom not-found and error pages, and per-page titles and descriptions; show that every filtered view survives a reload and a copied link. Then add a [lang] segment that Proxy chooses from a cookie or the Accept-Language header, and a members page that Proxy redirects to sign-in when no session cookie is present.
References
Hard prerequisites
Unlocks
On these roadmaps
Progress and evidence for this skill are shared across all of them.