Core Concepts

Routing Overview

Understand static, dynamic, and catch-all routes so app structure scales without rewrites.

Updated: 2026-03-04

Static Route

txt

txt
app/docs/page.tsx -> /docs

Dynamic Segment

txt

txt
app/blog/[slug]/page.tsx -> /blog/my-post

Catch-All Segment

txt

txt
app/docs/[...slug]/page.tsx -> /docs/category/article

Catch-all routes are useful for docs IA where category + article path comes from content data.