statsig-node-fastly-kv
v1.1.2
Published
allows for fastly integration with the statsig-node sdk
Downloads
14
Readme
Statsig Node Server SDK - Edge Config Adapter
A first party Fastly integration with the Statsig server-side Node.js SDK.
Quick Setup
- Install the Statsig Node SDK
npm install [email protected]
- Install this package
npm install statsig-node-fastly
- Setup the Statsig Fastly Integration
- Import the package
import { FastlyDataAdapter } from 'statsig-node-fastly'
- Create an instance of the
FastlyDataAdapter
const dataAdapter = new FastlyDataAdapter(KV_STORE_NAME, 'statsig-YOUR_COMPANY_ID');
- When initializing the
statsig
sdk, add the adapter to options
await statsig.initialize(
'server-secret-key',
{ dataAdapter: dataAdapter },
);