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:

  1. app/
  2. docs/
  3. [...slug]/
  4. page.tsx