Next.js Discord

Discord Forum

Nested Catch-All Routes Optimization

Unanswered
Taigan posted this in #help-forum
Open in Discord
TaiganOP
Hi Folks,

I am using next12, I have a nested catch-all route setup like this and will this /some-page route contain chunks from main [[...slug].tsx route as well ?. My build manifest file has two different pages entry inside.

pages: {
  "/[[...slug]]": [],
  "/some-page/[[...slug]]": []
}

pages
  some-page
    [[...slug].tsx
  [[...slug].tsx

0 Replies