Skip to main content
Version: Next

EnvFunc

Home > @backstage/config-loader > EnvFunc

A custom function to be used for substitution withing configuration files.

Signature:

export type SubstitutionFunc = (name: string) => Promise<string | undefined>;

Remarks

Substitutions use the following syntax: baseUrl: https://${HOSTNAME}, where 'HOSTNAME' is the name of the variable to be substituted.

The default substitution function will read the value of the environment.