happykit / flags

⛳️ Feature Flags for Next.js
https://happykit.dev
MIT License
1.03k stars 11 forks source link

fix: access hkvk cookie value properly in next 13 #37

Closed BRKalow closed 1 year ago

BRKalow commented 1 year ago

In Next 13, cookies.get() returns an object of the shape { name, value} (docs). This fix updates the logic to handle this so using flags in middleware works as expected when a visitor already has a hkvk cookie.

stackblitz[bot] commented 1 year ago

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

changeset-bot[bot] commented 1 year ago

🦋 Changeset detected

Latest commit: d49aed1681d41180fd7cc46bd7daff91db8cb4b9

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

This PR includes changesets to release 2 packages | Name | Type | | --------------- | ----- | | @happykit/flags | Patch | | example | 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

vercel[bot] commented 1 year ago

@BRKalow is attempting to deploy a commit to the HappyKit Team on Vercel.

A member of the Team first needs to authorize it.