Skip to content

Glossary: Next.js Basics

Catch-all segment

Also written: [...slug], catch-all

A folder named like `[...slug]` that matches any number of URL parts. In `app/help/[...slug]`, /help/shipping/rates gives `slug` as `["shipping", "rates"]`.

Where the book teaches it

Related terms

Dynamic segment