Wildcard Route

Wildcard Route

Wildcard (catch-all) routes use [...].tsx syntax to capture all remaining path segments. This is useful for file browsers, documentation paths, or any nested structure.

Captured Path

path = "docs/api/ref"

Segments

docsapiref

File Structure

routes/
  features/
    routing/
      files/
        [...].tsx    ← Catches all nested paths

Route Pattern

/features/routing/files/*