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

"edge" runtime is not allowed in pages router getServerSideProps. "experimental-edge" is forced though it shouldn't be. #65945

Closed
joulev opened this issue May 19, 2024 · 2 comments
Labels
bug Issue was opened via the bug report template. locked Pages Router Related to Pages Router. Runtime Related to Node.js or Edge Runtime with Next.js.

Comments

@joulev
Copy link
Contributor

joulev commented May 19, 2024

Link to the code that reproduces this issue

https://github.com/joulev/debug/tree/nextjs-pages-router-edge-page

To Reproduce

  1. pnpm build

Current vs. Expected behavior

Current:

Error: Page / provided runtime 'edge', the edge runtime for rendering is currently experimental. Use runtime 'experimental-edge' instead.

Expected:

While changing the runtime to experimental-edge does work, but edge should work too. The documentation says so, hence either the documentation is wrong or the error should not be thrown. Since the edge runtime has been stable for a long time now, I think the bug is more in the code than in the documentation.

Provide environment information

Operating System:
  Platform: linux
  Arch: x64
  Version: #20~22.04.1-Ubuntu SMP Wed Apr  3 03:28:18 UTC 2024
  Available memory (MB): 7930
  Available CPU cores: 2
Binaries:
  Node: 18.20.2
  npm: 10.5.0
  Yarn: 1.22.19
  pnpm: 9.1.0
Relevant Packages:
  next: 14.3.0-canary.70 // Latest available version is detected (14.3.0-canary.70).
  eslint-config-next: N/A
  react: 19.0.0-beta-04b058868c-20240508
  react-dom: 19.0.0-beta-04b058868c-20240508
  typescript: 5.4.5
Next.js Config:
  output: N/A

Which area(s) are affected? (Select all that apply)

Pages Router, Runtime

Which stage(s) are affected? (Select all that apply)

next dev (local), next build (local), Vercel (Deployed)

Additional context

N/A

@joulev joulev added the bug Issue was opened via the bug report template. label May 19, 2024
@github-actions github-actions bot added Pages Router Related to Pages Router. Runtime Related to Node.js or Edge Runtime with Next.js. labels May 19, 2024
@joulev
Copy link
Contributor Author

joulev commented May 20, 2024

Fixed by #65962

@joulev joulev closed this as completed May 20, 2024
Copy link
Contributor

github-actions bot commented Jun 5, 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 Jun 5, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 5, 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 Pages Router Related to Pages Router. Runtime Related to Node.js or Edge Runtime with Next.js.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant