Skip to content

Optional catch all routes and getStaticPaths #13467

Closed
@Timer

Description

@Timer

How should one prerender the rootmost route when using optional catch all routes and getStaticPaths?

undefined? null? An empty Array []?


Also reported:

Page                                                           Size     First Load JS
┌ ● /[[...slug]]                                               335 B            59 kB
├   ├ /[]
├   ├ /[one]
├   ├ /[one/two]
├   └ /[one/two/three]

https://github.com/zackkrida/next-experimental-catchall-bug/blob/master/pages/%5B%5B...slug%5D%5D.js

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions