-
Notifications
You must be signed in to change notification settings - Fork 27k
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
NextRequest.nextUrl is an empty object {} when deployed on Vercel #35519
Comments
Hum, rather than an issue related with serialization, I think it's just Still no clear with this is just happening under production scenario |
For now,
|
Hello, This PR adds a method to have a custom inspect for `NextURL` closes #35519
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Verify canary release
Provide environment information
Operating System:
Platform: darwin
Arch: x64
Version: Darwin Kernel Version 21.4.0: Mon Feb 21 20:35:58 PST 2022; root:xnu-8020.101.4~2/RELEASE_ARM64_T6000
Binaries:
Node: 14.19.1
npm: 6.14.16
Yarn: 1.22.18
pnpm: 6.11.0
Relevant packages:
next: 12.1.0
react: 17.0.2
react-dom: 17.0.2
warn - Latest canary version not detected, detected: "12.1.0", newest: "12.1.1-canary.16".
Please try the latest canary version (
npm install next@canary
) to confirm the issue still exists before creating a new issue.Read more - https://nextjs.org/docs/messages/opening-an-issue
What browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
Describe the Bug
According to docs,
NextRequest.nextUrl
should containbut the following prints
{}
in console.logTested on
next@latest
and[email protected]
.Expected Behavior
seems to be working when
yarn dev
:To Reproduce
Create new Next.js project, add the following
_middleware
and deploy on Vercel:Related Issues:
The text was updated successfully, but these errors were encountered: