Skip to main content
Version: Next

discoveryFeatureLoader

Home > @backstage/backend-defaults > discoveryFeatureLoader

A loader that discovers backend features from the current package.json and its dependencies.

Signature:

discoveryFeatureLoader: import("@backstage/backend-plugin-api").BackendFeature

Example

Using the discoveryFeatureLoader loader in a backend instance:

//...
import { createBackend } from '@backstage/backend-defaults';
import { discoveryFeatureLoader } from '@backstage/backend-defaults';

const backend = createBackend();
backend.add(discoveryFeatureLoader);
//...
backend.start();