Skip to content

support dynamic directory routing capabilities for SSR pages and API routes #1623

Description

@thescientist13

Motivation

Coming out adding support for dynamic routing, it would be good to add support for being able to have dynamic segments for directories in file based routing paths, e.g.

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

Would match / yield the following params for this kind of route; /projectevergreen/greenwood/milestone1-0/

{
  org: 'projectevergreen',
  team: 'greenwood',
  board: 'milestone1-0'
}

Technical Design

Inspired by these implementations

Additional Context

Should also make sure to account for adapter plugins

Metadata

Metadata

No fields configured for Feature.

Projects

Status
🔖 Ready

Relationships

None yet

Development

No branches or pull requests

Issue actions