Skip to main content

loadBackendConfig()

Home > @backstage/backend-app-api > loadBackendConfig

Load configuration for a Backend.

This function should only be called once, during the initialization of the backend.

Signature:

function loadBackendConfig(options: {
remote?: LoadConfigOptionsRemote;
argv: string[];
additionalConfigs?: AppConfig[];
watch?: boolean;
}): Promise<{
config: Config;
}>;

Parameters

ParameterTypeDescription
options{ remote?: LoadConfigOptionsRemote; argv: string[]; additionalConfigs?: AppConfig[]; watch?: boolean; }

Returns:

Promise<{ config: Config; }>