-
Notifications
You must be signed in to change notification settings - Fork 19
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
DO NOT MERGE: feat: add the ability to send events using the Vercel Edge SDK #217
DO NOT MERGE: feat: add the ability to send events using the Vercel Edge SDK #217
Conversation
This pull request has been linked to Shortcut Story #211103: Release beta version of Vercel SDK with events enabled. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This LGTM, you may want to wait for a signoff from @yusinto as well. In case he has any edge specific thoughts.
I added DO NOT MERGE to the title because we are waiting on customer feedback of the alpha package. |
…rcel-sdk-with-events
@ldhenry The user agent change is now merged, so you can remove the wrapper name/version. |
Closing in favor of #256 |
Edge sdks use clientSideID not sdk-key. We should be able to post events to the eventsUri/bulk/clientSideID endpoint for edge sdks without needing to specify the sdk key in the authorization header. This is an alternate solution to #217. Both prs are attempting to enable events for edge sdks. Don't be alarmed with the filecount, it's mostly shell file fixes unrelated to this to include a directive which seems to be needed for local build. --------- Co-authored-by: LaunchDarklyReleaseBot <[email protected]>
This PR adds the ability to send events using the Vercel Edge SDK. The Edge SDK requires the client-side ID to retrieve feature flags from the Vercel Edge Config, so I had to add a new option for the
serverSideKey
so we can set the correct authorization header.I have tested this locally and also published an alpha version of this branch to test in a deployed environment.