Stanza Config
The SDK uses the Stanza config to get basic information to set up Stanza.
const config: StanzaCoreConfig = {
url: 'https://hub.stanzasys.co', // the Stanza service url
environment: 'local', // the environment you want to pull configurations for
stanzaApiKey: '<your_api_key>', // an API key issued in the Stanza UI
refreshSeconds: 3, // the refresh rate of the feature statuses
contextConfigs: [ // groups of features that load together - most likely, your app's pages or routes
{
name: 'main',
features: ['featured', 'search', 'checkout']
},
{
name: 'details',
features: ['checkout']
}
],
}