App Router
The Next.js routing system built on React Server Components, where folders inside app/ define the routes.
In more detail
Introduced in Next.js 13 and the recommended router since, the App Router renders on the server by default and supports layouts, streaming, Server Actions and the caching tiers covered in the course. It replaces the older Pages Router, which still works for existing projects.
Related terms
- Pages Router — The original Next.js router, where files in pages/ became routes and data was loaded with special functions.
- app directory — The folder, app/ or src/app/, whose subfolders and special files define every route in an App Router project.
- React Server Components — React components that run only on the server, sending their rendered result to the browser without shipping their code.
Taught in
- App Router Architecture: Server-First Paradigms — Next.js 15 & Modern App Router Architecture
- Server Components: Async Execution & Constraints — Next.js 15 & Modern App Router Architecture
- Route Groups & Private Folders: Modular Structures — Next.js 15 & Modern App Router Architecture
- Streaming SSR: Progressive HTML & Chunked Transfers — Next.js 15 & Modern App Router Architecture
- Route Handlers: RESTful Endpoints with NextRequest — Next.js 15 & Modern App Router Architecture
- Runtime Environments: Node.js vs Edge Runtime Choice — Next.js 15 & Modern App Router Architecture