Skip to main content
Version: Next

ConfigSource

Home > @backstage/config-loader > ConfigSource

A source of configuration data.

Signature:

export interface ConfigSource 

Remarks

It is recommended to implement the readConfigData method as an async generator.

Example

class MyConfigSource implements ConfigSource {
async *readConfigData() {
yield {
config: [{
context: 'example',
data: { backend: { baseUrl: 'http://localhost' } }
}]
};
}
}

Methods

Method

Description

readConfigData(options)