statsig-node-fastly
v1.0.6
Published
allows for fastly integration with the statsig-node sdk
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(YOUR_FASTLY_API_TOKEN, YOUR_CONFIG_STORE_ID, 'statsig-YOUR_COMPANY_ID');- When initializing the
statsigsdk, add the adapter to options
await statsig.initialize(
'server-secret-key',
{ dataAdapter: dataAdapter },
);