Dynamic routes in Next.js
From the Next.js cheat sheet · Routing & Navigation · verified Jul 2026
Dynamic routes
typescript
// app/blog/[slug]/page.tsx💡 [param] for dynamic segments
⚡ [...slug] for catch-all routes
📌 [[...slug]] for optional catch-all
🟢 Access params in page components