Catch-all route also intercepts and catches static assets and js chunks #73028
Labels
bug
Issue was opened via the bug report template.
Navigation
Related to Next.js linking (e.g., <Link>) and navigation.
Runtime
Related to Node.js or Edge Runtime with Next.js.
Link to the code that reproduces this issue
https://github.com/r6203/next-catch-all-bug
To Reproduce
next dev
Current vs. Expected behavior
Having a catch all route at the root of the app shouldn't intercept next generated assets or static assets.
Expect a working app where each non asset request resolves to the catch-all route but requests to next generated assets (_next/**/*) to resolve to the corresponding files.
Provide environment information
Which area(s) are affected? (Select all that apply)
Navigation, Runtime
Which stage(s) are affected? (Select all that apply)
next dev (local), next start (local)
Additional context
For an in-production example of this issue with a workaround see https://github.com/session-foundation/websites/tree/main/apps/foundation
Note this is reopening this issue #67806
The text was updated successfully, but these errors were encountered: