Skip to main content

FileConfigSource.create()

Home > @backstage/config-loader > FileConfigSource > create

Creates a new config source that loads configuration from the given path.

Signature:

static create(options: FileConfigSourceOptions): ConfigSource;

Parameters

Parameter

Type

Description

options

FileConfigSourceOptions

Options for the config source.

**Returns:**

ConfigSource

A new config source that loads from the given path.

Remarks

The source will watch the file for changes, as well as any referenced files.