Overview
Statsig’s Cloudflare integration pushes Statsig Configs to Cloudflare KV, allowing you to bootstrap your Cloudflare projects quickly.
Configuration
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 (opens in a new tab) into your worker.
Known Limitations
Cloudflare KV has maximum size limits that may prevent Statsig from pushing configs into your KV. See here (opens in a new tab) for the latest Cloudflare KV limits.
Statsig ID Lists are not currently synced into Cloudflare KVs.