API ReferenceAdapters
@flags-sdk/edge-config
The @flags-sdk/edge-config
package provides a basic adapter for defining feature flags powered by Vercel Edge Config
Learn more about Adapters
Installation
Follow the Quickstart, then add the Edge Config adapter.
Install desired dependencies
Set relevant variables
Usage
Your Edge Config should be managed on the dashboard as follows:
API Reference
edgeConfigAdapter
The adapter assumes that there is an EDGE_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.
createEdgeConfigAdapter
To customize these options you can import and call createEdgeConfigAdapter
manually.
Option key | Type | Description |
---|---|---|
connectionString | `string | EdgeConfigClient` |
options.edgeConfigItemKey | string | Defaults to flags |
options.teamSlug | string | The team slug used for your team in the Vercel dashboard, used to create links to your Edge Config |
Read More
Read more about Edge Config, Flags SDK, and the Edge Config adapter.