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

temp-fix: rendering error in next.js 14.0.2 caused by next.js bug #534

Merged
merged 2 commits into from
Nov 11, 2023

Conversation

james-elicx
Copy link
Contributor

@james-elicx james-elicx commented Nov 10, 2023

vercel/next.js#57815 introduced a critical bug for us that breaks rendering due to the assumption that their internal request shape is always NodeNextRequest (and should have the originalRequest property on it), and is never WebNextRequest (which doesn't have the originalRequest property).

This fix is intended to be a temporary band-aid until the issue is fixed in Next.js. I raised an issue at vercel/next.js#58265.

image

Copy link

changeset-bot bot commented Nov 10, 2023

🦋 Changeset detected

Latest commit: b1ed49c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@cloudflare/next-on-pages Patch
eslint-plugin-next-on-pages Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@james-elicx james-elicx changed the title temp-fix: rendering in next.js 14.0.2 caused by next.js bug temp-fix: rendering error in next.js 14.0.2 caused by next.js bug Nov 10, 2023
Copy link
Contributor

github-actions bot commented Nov 10, 2023

🧪 Prereleases are available for testing 🧪

@cloudflare/next-on-pages

You can install this latest build in your project with:

npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/next-on-pages/runs/6834724449/npm-package-next-on-pages-534

@cloudflare/eslint-plugin-next-on-pages

You can install this latest build in your project with:

npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/next-on-pages/runs/6834724449/npm-package-eslint-plugin-next-on-pages-534

Copy link
Member

@dario-piotrowicz dario-piotrowicz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! thanks a lot @james-elicx ❤️ 🙏 ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants