You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/sdk/cloudflare/README.md
+22-14Lines changed: 22 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,36 +8,44 @@ This library supports using Cloudflare [Workers KV](https://developers.cloudflar
8
8
9
9
For more information, see the [SDK features guide](https://docs.launchdarkly.com/sdk/features/storing-data).
10
10
11
-
## Installation
11
+
## Install
12
12
13
13
```shell
14
14
npm i @launchdarkly/cloudflare-server-sdk
15
15
```
16
16
17
-
or yarn:
18
-
19
-
```shell
20
-
yarn add @launchdarkly/cloudflare-server-sdk
21
-
```
22
-
23
-
In `wrangler.toml` in your worker project turn on the Node.js compatibility flag.
24
-
This allows the SDK to use `node:events`:
17
+
Then turn on the Node.js compatibility flag in your `wrangler.toml`. This allows the SDK to use `node:events`:
25
18
26
19
```toml
27
20
compatibility_flags = [ "nodejs_compat" ]
28
21
```
29
22
30
23
## Quickstart
31
24
32
-
Initialize the ldClient with the [Cloudflare KV namespace](https://developers.cloudflare.com/workers/runtime-apis/kv#kv-bindings) and your client side sdk key:
25
+
Initialize the ldClient with your client side sdk key and the [Cloudflare KV namespace](https://developers.cloudflare.com/workers/runtime-apis/kv#kv-bindings):
0 commit comments