Click in order · Next.js course · Module 2: Routing and Layouts
Catch-All Route Syntax
Arrange the correct file path for a catch-all route in Next.js
Items to click
- docs/
- [...slug]/
- app/
- page.tsx
Show the answer
Correct order:
- app/
- docs/
- [...slug]/
- page.tsx