Skip to main content
Version: Next

ConfigSources.defaultForTargets()

Home > @backstage/config-loader > ConfigSources > defaultForTargets

Creates the default config sources for the provided targets.

Signature:

static defaultForTargets(options: ConfigSourcesDefaultForTargetsOptions): ConfigSource;

Parameters

ParameterTypeDescription
optionsConfigSourcesDefaultForTargetsOptionsOptions

Returns:

ConfigSource

A config source for the provided targets

Remarks

This will create FileConfigSources and RemoteConfigSources for the provided targets, and merge them together to a single source. If no targets are provided it will fall back to app-config.yaml and app-config.local.yaml.

URL targets are only supported if the remote option is provided.