You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There seems to be two options how to create a catch-all route
src/pages/route/[...all].tsx -> route/* in router.ts
src/pages/route/[...all]/index.tsx -> route/*/ in router.ts
The second route with a folder and index.tsx file seems to be generated with extra leading forward slash causing it to not be correctly matched afterwards
Describe the Bug
There seems to be two options how to create a catch-all route
src/pages/route/[...all].tsx
->route/*
inrouter.ts
src/pages/route/[...all]/index.tsx
->route/*/
inrouter.ts
The second route with a folder and
index.tsx
file seems to be generated with extra leading forward slash causing it to not be correctly matched afterwardsGenerouted Version
1.19.10
Your Example Website or App or Reproduction
https://stackblitz.com/edit/github-stb4sxrx?file=src%2Fpages%2Fcatchall-file%2F%5B...all%5D.tsx
Steps to Reproduce the Bug or Issue
[...all]
and page in fileindex.tsx
Expected Behavior
Route should be working and routed correctly
Screenshots or Videos
No response
Platform
Additional context
No response
The text was updated successfully, but these errors were encountered: