FlagFix
SDKs

Authentication and configuration

SDK keys, apiHost, and storage.

Cette page n’a pas encore de traduction française. Le texte anglais fait foi.

Last updated on

The SDK sends X-FlagFix-Sdk-Key. Browser options call the secret clientKey. Node options call it serverKey. apiHost is an origin with no path. The client appends /api/v1/runtime/... and /api/v1/ingest/events. If you omit apiHost, the SDK defaults to https://api.flagfix.example. Set the origin explicitly.

SDKmemorypersistent
BrowserRAMIndexedDB
NodeRAMSQLite file. Driver better-sqlite3 or node-sqlite

batching and fetchImpl are optional. The SDK does not read process.env for you. Use NEXT_PUBLIC_ only for the client key. Never prefix a server key with NEXT_PUBLIC_.

Cette page vous a-t-elle été utile ?