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

[@salesforce/b2c-tooling-sdk](../../modules.md) / [cli](../index.md) / ConfigSourcesHookResult

# Interface: ConfigSourcesHookResult

Defined in: [packages/b2c-tooling-sdk/src/cli/hooks.ts:71](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/e7c16f1ae423da0aa47b3e10be88f9770b53619b/packages/b2c-tooling-sdk/src/cli/hooks.ts#L71)

Result returned by the `b2c:config-sources` hook.

Plugins return one or more ConfigSource instances that will be integrated
into the configuration resolution chain.

## Properties

### priority?

> `optional` **priority**: `number` \| `"before"` \| `"after"`

Defined in: [packages/b2c-tooling-sdk/src/cli/hooks.ts:90](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/e7c16f1ae423da0aa47b3e10be88f9770b53619b/packages/b2c-tooling-sdk/src/cli/hooks.ts#L90)

Priority for the returned sources. Can be a string or number:

String values (legacy, still supported):
- `'before'`: Maps to priority -1 (higher priority than defaults)
- `'after'`: Maps to priority 10 (lower priority than defaults)

Numeric values (preferred):
- Any number. Lower numbers = higher priority.
- Built-in sources use priority 0.
- package.json uses priority 1000.

If a source already has a `priority` property set, it will not be overridden.

#### Default

```ts
'after' (maps to 10)
```

***

### sources

> **sources**: [`ConfigSource`](../../config/interfaces/ConfigSource.md)[]

Defined in: [packages/b2c-tooling-sdk/src/cli/hooks.ts:73](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/e7c16f1ae423da0aa47b3e10be88f9770b53619b/packages/b2c-tooling-sdk/src/cli/hooks.ts#L73)

Config sources to add to the resolution chain
