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

add toolbar integration setup #61

Merged
merged 1 commit into from
Apr 2, 2024
Merged

Conversation

dferber90
Copy link
Contributor

@dferber90 dferber90 commented Apr 2, 2024

Adds the Vercel Toolbar and displays the flags there.

  1. Go to your project details on happykit.dev > Settings > Keys > API Tokens (you need to be a team owner to see this)
  2. Store the generated token as HAPPYKIT_API_TOKEN env var on your project

This requires using version 2.4.0-bde40fe0-20240402110149 of @vercel/flags.

Note This example does not respect overrides set by the toolbar. To do so, you'd need to respect the vercel-flag-overrides cookie which the toolbar sets whenever you apply overrides.

Note This example does not show the actual values of flags in the toolbar, but it can be added easily by rendering the <FlagValues /> component which is exported by @vercel/flags/react.

Copy link

changeset-bot bot commented Apr 2, 2024

⚠️ No Changeset found

Latest commit: b466dde

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

Copy link

vercel bot commented Apr 2, 2024

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

Name Status Preview Comments Updated (UTC)
flags ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 2, 2024 0:08am

@dferber90 dferber90 marked this pull request as ready for review April 2, 2024 12:13
@dferber90 dferber90 merged commit 854dd72 into master Apr 2, 2024
3 checks passed
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.

1 participant