statsig-io / js-client

Statsig's SDK for client-side javascript applications.
ISC License
17 stars 11 forks source link

Disaster config #3

Closed vijaye-statsig closed 2 years ago

vijaye-statsig commented 2 years ago

A static config that's stored in a separate CDN than all the rest of our services.
This config is not user-targetable, and only one instance exists for every API key. The config can be updated via a script - we could eventually make this editable via our console (but usually this will be used when our services are inaccessible, so that might be noop) Currently it's stored in CloudFlare via web workers. Update happens via: curl https://api.statsig1.com/failsafe/put/[CLIENT API KEY] -X POST -d '{"msg":"Hello World"}'