We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://github.com/yanni-fe/nextjs-reproduce-demo
pages |- demo |- [[...slug]].tsx
// next.config.js const nextConfig = { assetPrefix: '/demo', }
open localhost:3000/demo will return 404
localhost:3000/demo
For versions before 14.2, it works well. After updating next.js to 14.2.3, it fails.
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 22.5.0 Binaries: Node: 18.17 npm: 9.8.1 Yarn: 1.22.19 Relevant Packages: next: 14.2.3 eslint-config-next: 14.2.3 react: 18.3.1 react-dom: 18.3.1 typescript: 5.1.3 Next.js Config: output: N/A
Pages Router
next dev (local), next start (local)
I think this is caused by this commit 4efe142
changes in packages/next/src/server/lib/router-utils/filesystem.ts at line 438
The text was updated successfully, but these errors were encountered:
Either this should be fixed or documentation updated that you can't have same routes as assetPrefix
Sorry, something went wrong.
No branches or pull requests
Link to the code that reproduces this issue
https://github.com/yanni-fe/nextjs-reproduce-demo
To Reproduce
open
localhost:3000/demo
will return 404Current vs. Expected behavior
For versions before 14.2, it works well. After updating next.js to 14.2.3, it fails.
Provide environment information
Which area(s) are affected? (Select all that apply)
Pages Router
Which stage(s) are affected? (Select all that apply)
next dev (local), next start (local)
Additional context
I think this is caused by this commit 4efe142
changes in packages/next/src/server/lib/router-utils/filesystem.ts at line 438
The text was updated successfully, but these errors were encountered: