Developer Preview — This project is in active development. APIs may change. Provide feedback
Skip to content

@salesforce/b2c-tooling-sdk / config / globalConfigSourceRegistry

Variable: globalConfigSourceRegistry

const globalConfigSourceRegistry: ConfigSourceRegistry

Defined in: packages/b2c-tooling-sdk/src/config/config-source-registry.ts:146

Global config source registry instance.

This is the default registry used by resolveConfig. Register config sources here to have them automatically included in configuration resolution.

Example

typescript
import { globalConfigSourceRegistry } from '@salesforce/b2c-tooling-sdk/config';

globalConfigSourceRegistry.register({
  name: 'my-source',
  load(options) {
    return {
      config: { hostname: 'example.com' },
      location: 'my-source',
    };
  },
});

Released under the Apache-2.0 License.