---
editLink: false
lastUpdated: false
---

[@salesforce/b2c-tooling-sdk](../../modules.md) / [config](../index.md) / globalConfigSourceRegistry

# Variable: globalConfigSourceRegistry

> `const` **globalConfigSourceRegistry**: [`ConfigSourceRegistry`](../classes/ConfigSourceRegistry.md)

Defined in: [packages/b2c-tooling-sdk/src/config/config-source-registry.ts:146](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/e7c16f1ae423da0aa47b3e10be88f9770b53619b/packages/b2c-tooling-sdk/src/config/config-source-registry.ts#L146)

Global config source registry instance.

This is the default registry used by [resolveConfig](../functions/resolveConfig.md). 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',
    };
  },
});
```
