Skip to content

support catch all routing for dynamic SSR pages and API routes routing #1624

@thescientist13

Description

@thescientist13

Motivation

Motivation

Coming out adding support for dynamic routing, it would be good to add support for catch all routes, through a rest / spread naming convention that "catches" all route segments starting from the spreaded segment into one param.

src/
  pages/
    [org]/
      [team]/
        [...milestone].js

Would match / yield the following params for this kind of route; /projectevergreen/greenwood/milestone/1/

{
  org: 'projectevergreen',
  team: 'greenwood',
  milestone: '/milestone/1/'
}

Technical Design

Technical Design

Inspired by these implementations

Additional Context

Additional Context

Should also make sure to account for adapter plugins, and any types for this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions