dev mode not working with route rewriting and disabled languageDetection #51713
Labels
bug
Issue was opened via the bug report template.
Linking and Navigating
Related to Next.js linking (e.g., <Link>) and navigation.
Pages Router
Related to Pages Router.
stale
The issue has not seen recent activity.
Verify canary release
Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 22.5.0: Mon Apr 24 20:52:24 PDT 2023; root:xnu-8796.121.2~5/RELEASE_ARM64_T6000 Binaries: Node: 18.14.2 npm: 9.5.0 Yarn: 1.22.19 pnpm: N/A Relevant packages: next: 13.4.7 eslint-config-next: N/A react: 18.2.0 react-dom: 18.2.0 typescript: 5.0.4
Which area(s) of Next.js are affected? (leave empty if unsure)
Data fetching (gS(S)P, getInitialProps), Internationalization (i18n), Routing (next/router, next/navigation, next/link)
Link to the code that reproduces this issue or a replay of the bug
https://github.com/AIwcom/next-bug
To Reproduce
Describe the Bug
When accessing a route which is rewritten in next.config directly it ends up in a 404 (only in dev mode - yarn build & yarn start works as expected). I experience this behavior since version >13.2.4.
Expected Behavior
I can access the rewritten route directly in dev mode
Which browser are you using? (if relevant)
not relevant
How are you deploying your application? (if relevant)
not relevant
The text was updated successfully, but these errors were encountered: