nextjsrouting

File-based routing with the App Router

Layouts, nested routes and dynamic segments.

Ajay · Sep 23, 2026 · 12 min read
File-based routing with the App Router

The App Router uses directory structures to define routes, shared layouts, error boundaries, and loading states.