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

nodeMiddleware / runtime: "nodejs" not working #12844

Open
pranavmappoli opened this issue Apr 4, 2025 · 1 comment
Open

nodeMiddleware / runtime: "nodejs" not working #12844

pranavmappoli opened this issue Apr 4, 2025 · 1 comment
Labels
bug Something isn't working triage Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.

Comments

@pranavmappoli
Copy link

Environment

  System:
    OS: macOS 15.3.2
    CPU: (12) arm64 Apple M3 Pro
    Memory: 2.80 GB / 36.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.12.1 - ~/.nvm/versions/node/v20.12.1/bin/node
    Yarn: 1.22.22 - ~/.nvm/versions/node/v20.12.1/bin/yarn
    npm: 10.5.0 - ~/.nvm/versions/node/v20.12.1/bin/npm
    pnpm: 9.7.0 - ~/.nvm/versions/node/v20.12.1/bin/pnpm
  Browsers:
    Chrome: 134.0.6998.166
    Edge: 134.0.3124.95
    Safari: 18.3.1
  npmPackages:
    @auth/prisma-adapter: ^2.7.4 => 2.7.4 
    next: 15.2.0-canary.67 => 15.2.0-canary.67 
    next-auth: 5.0.0-beta.25 => 5.0.0-beta.25 
    react: 19.0.0 => 19.0.0 

Reproduction URL

https://github.com/webcrafterhub/tools

Describe the issue

when i set to nodemiddleware like below

const nextConfig: NextConfig = {
	experimental: {
		reactCompiler: true,
		ppr: "incremental",
		nodeMiddleware: true,
	},
};

this breaking the application. Please help
using auth5-beta-25
nextjs 15.2 -beta

How to reproduce

use nodeMiddleware: true as above
in middlware put
runtime: "nodejs"

Expected behavior

page should work

@pranavmappoli pranavmappoli added bug Something isn't working triage Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime. labels Apr 4, 2025
@ckhicks
Copy link

ckhicks commented Apr 4, 2025

I'm having a similar issue - trying to deploy to CloudFlare Workers using the OpenNext package, which requires Next v15 and nodejs middleware.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.
Projects
None yet
Development

No branches or pull requests

2 participants