Skip to content

Commit

Permalink
feat: Support analytics events in the vercel SDK. (#316)
Browse files Browse the repository at this point in the history
  • Loading branch information
kinyoklion authored Nov 14, 2023
1 parent c769d74 commit cc41db4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 8 additions & 0 deletions packages/sdk/vercel/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@ const flagValue = await ldClient.variation('my-flag', ldContext, true);

To learn more, see the [examples](examples/README.md) in this repository or head straight to the [complete reference guide for this SDK](https://docs.launchdarkly.com/sdk/server-side/vercel).


> **⚠️ experimental**
>
> This SDK has experimental support for sending analytic events to LaunchDarkly. It can be enabled by setting `sendEvents` to `true` in the SDK options.
>```typescript
> const client = initLD(sdkKey, env.LD_KV, {sendEvents: true});
>```
## Developing this SDK
```shell
Expand Down
3 changes: 1 addition & 2 deletions release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
"packages/sdk/server-node": {},
"packages/sdk/cloudflare": {},
"packages/sdk/vercel": {
"extra-files": ["src/createPlatformInfo.ts"],
"release-as": "1.2.0"
"extra-files": ["src/createPlatformInfo.ts"]
},
"packages/sdk/akamai-base": {
"extra-files": ["src/index.ts"]
Expand Down

0 comments on commit cc41db4

Please sign in to comment.