Closed vndre closed 2 years ago
This seems to have been fixed on canary
already! Please upgrade if you want to try it now.
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
Run
next info
(available from version 12.0.8 and up)What version of Next.js are you using?
12.0.10
What version of Node.js are you using?
17.4.0
What browser are you using?
chrome
What operating system are you using?
linux
How are you deploying your application?
next dev
Describe the Bug
Optional catch all route at
pages/[[...slug]]
works fine on latest version until I enableconcurrentFeatures
in next.configExpected Behavior
I should be able to catch the index and all routes using
concurrentFeatures
option.To Reproduce
repo to reproduce it: https://github.com/vndre/catch-all-next12
1) browse to
localhost:3000/
... catch all route should work for any route. 2) uncomment line 4 to 6 in next.config.js 3) next throws error:You cannot define a route with the same specificity as a optional catch-all route ("/" and "/[[...slug]]").