-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Labels
AdapterCLIdocumentationGreenwood specific docsGreenwood specific docsfeatureNew feature or requestNew feature or request
Milestone
Description
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].jsWould 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
- https://docs.astro.build/en/guides/routing/#rest-parameters
- https://nextjs.org/docs/pages/building-your-application/routing/dynamic-routes#catch-all-segments
Additional Context
Additional Context
Should also make sure to account for adapter plugins, and any types for this.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
AdapterCLIdocumentationGreenwood specific docsGreenwood specific docsfeatureNew feature or requestNew feature or request