new Config(source)
Parameters:
Name |
Type |
Description |
source |
Object
|
Initialisation object for Config |
Example
const source = {
catalog_api_url: 'https://catalog_api.com/api',
checkout_api_url: 'https://checkout_api.com/api',
oauth2_provider_url: 'https://oauth2_provider.com/api',
sales_channel: {
locale: 'de_DE',
channel: '11111111-1111-1111-1111-111111111111',
toc_url: 'https://m.zalando.de/agb/'
},
recommendations: {
location: 'my_app_pdp',
type: 'similar',
channel: 'myapp'
}
};
const config = new Config(source);