Skip to content
New issue

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

Incorrect routing when using generateStaticParams in standalone mode #59505

Closed
1 task done
leanderiversen opened this issue Dec 11, 2023 · 5 comments
Closed
1 task done
Labels
bug Issue was opened via the bug report template. locked Output (export/standalone) Related to the the output option in `next.config.js`.

Comments

@leanderiversen
Copy link

leanderiversen commented Dec 11, 2023

Link to the code that reproduces this issue

https://github.com/leanderiversen/open-next-331/

To Reproduce

  1. Run next build
  2. Run node .next/standalone/server.js
  3. Open http://localhost:3000/en-gb/first/second/

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

  • I verified that the issue exists in the latest Next.js 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.

@leanderiversen leanderiversen added the bug Issue was opened via the bug report template. label Dec 11, 2023
@github-actions github-actions bot added the Output (export/standalone) Related to the the output option in `next.config.js`. label Dec 11, 2023
@leanderiversen
Copy link
Author

The issue was fixed before in a canary prior to next@14.0.5-canary.39, but seems to have reappeared in a canary between 39 and 57.

@leanderiversen
Copy link
Author

leanderiversen commented Jan 27, 2024

This looks to be resolved in 14.1.1-canary.15 by #61115.

@leanderiversen
Copy link
Author

This has now been broken since 14.1.1-canary.16, caused by #61241.

@leanderiversen
Copy link
Author

The issue has been resolved in one of the latest versions.

Copy link
Contributor

github-actions bot commented May 9, 2024

This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@github-actions github-actions bot added the locked label May 9, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue was opened via the bug report template. locked Output (export/standalone) Related to the the output option in `next.config.js`.
Projects
None yet
Development

No branches or pull requests

1 participant