1.0.6 • Published 11 months ago
statsig-node-fastly v1.0.6
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 statsig-node@5.7.0
- 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
statsig
sdk, add the adapter to options
await statsig.initialize(
'server-secret-key',
{ dataAdapter: dataAdapter },
);