Incorrect routing when using generateStaticParams in standalone mode #59505
Labels
bug
Issue was opened via the bug report template.
locked
Output (export/standalone)
Related to the the output option in `next.config.js`.
Link to the code that reproduces this issue
https://github.com/leanderiversen/open-next-331/
To Reproduce
next build
node .next/standalone/server.js
Current vs. Expected behavior
I would expect the static route to render, as this is what happens when running next dev. In reality, the dynamic route renders.
Verify canary release
Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 23.3.0: Wed Dec 20 21:30:44 PST 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6000 Binaries: Node: 18.19.0 npm: 10.2.3 Yarn: 1.22.19 pnpm: 8.15.1 Relevant Packages: next: 14.1.1-canary.43 // Latest available version is detected (14.1.1-canary.43). eslint-config-next: 14.1.1-canary.43 react: 18.2.0 react-dom: 18.2.0 typescript: 5.3.3 Next.js Config: output: standalone
Which area(s) are affected? (Select all that apply)
App Router, Standalone mode (output: "standalone")
Additional context
I did initially think that this was an OpenNext issue, but have been provided more details confirming that this is an issue with Next.
The text was updated successfully, but these errors were encountered: