opennextjs / opennextjs-aws

Open-source Next.js adapter for AWS
https://opennext.js.org
MIT License
4.14k stars 126 forks source link

Fix cloudflare env #514

Closed conico974 closed 1 month ago

conico974 commented 2 months ago

This PR fix an issue with cloudflare env variable being undefined if the middleware does not run. This was breaking enableCacheInterception with the middleware in cloudflare.

This PR also fix some issue with cookies being not properly set when set both in the routing layer (i.e. middleware or next.config) and the route itself. It also fix an issue with cookies and the node wrapper

changeset-bot[bot] commented 2 months ago

⚠️ No Changeset found

Latest commit: 88a8675dc48fe8bb42d38aa3051929bbedc542df

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

vercel[bot] commented 2 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
open-next ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 17, 2024 11:22am