Statsig’s Cloudflare integration pushes Statsig Configs to Cloudflare KV, allowing you to bootstrap your Cloudflare projects quickly.
Navigate to the Cloudflare integration in Statsig's Console under Project Settings -> Integrations.
We're looking for the Cloudflare Account ID, KV Namespace ID and Cloudflare API Key.
- Cloudflare Account ID - Can be found in Cloudflare portal under Account Home -> Workers, on the right hand side
- KV Namespace ID - Can be found in Cloudflare portal under Account Home -> Workers -> KV, and can be copied in the table view
- Cloudflare API Token - Can be found in Cloudflare portal under Account Home -> Profile -> API Tokens. We need a token with Account.Workers KV Storage Edit Permissions.
After setting up the integration, implement the Statsig Cloudflare KV Data Adapter into your worker.
Cloudflare KV has maximum size limits that may prevent Statsig from pushing configs into your KV. See here for the latest Cloudflare KV limits.
Statsig ID Lists are not currently synced into Cloudflare KVs.