Skip to main content

ConfigSources.defaultForTargets()

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

Creates the default config sources for the provided targets.

Signature:

static defaultForTargets(options: ConfigSourcesDefaultForTargetsOptions): ConfigSource;

Parameters

Parameter

Type

Description

options

ConfigSourcesDefaultForTargetsOptions

Options

**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.