Global Config
The @flags-sdk/global-config package provides a basic adapter for defining feature flags powered by Vercel Global Config
Learn more about Adapters
Installation
Follow the Quickstart, then add the Global Config adapter.
Install desired dependencies
Set relevant variables
Usage
Your Global Config should be managed on the dashboard as follows:
API reference
globalConfigAdapter
The adapter assumes that there is an GLOBAL_CONFIG environment variable set with a connection string,
and that it contains a flags object with each key corresponding to a flag you define in code.
createGlobalConfigAdapter
To customize these options you can import and call createGlobalConfigAdapter manually.
| Option key | Type | Description |
|---|---|---|
connectionString | `string | GlobalConfigClient` |
options.globalConfigItemKey | string | Defaults to flags |
options.teamSlug | string | The team slug used for your team in the Vercel dashboard, used to create links to your Global Config |
Read more
Read more about Global Config, Flags SDK, and the Global Config adapter.