Backstage
    Preparing search index...

    Options for createApp.

    interface CreateAppOptions {
        advanced?: {
            configLoader?: () => Promise<{ config: Config }>;
            extensionFactoryMiddleware?:
                | ExtensionFactoryMiddleware
                | ExtensionFactoryMiddleware[];
            loadingElement?: ReactNode;
            pluginInfoResolver?: FrontendPluginInfoResolver;
        };
        features?: (FrontendFeature | FrontendFeatureLoader)[];
        bindRoutes?(context: { bind: CreateAppRouteBinder }): void;
    }
    Index

    Properties

    Methods

    Properties

    advanced?: {
        configLoader?: () => Promise<{ config: Config }>;
        extensionFactoryMiddleware?:
            | ExtensionFactoryMiddleware
            | ExtensionFactoryMiddleware[];
        loadingElement?: ReactNode;
        pluginInfoResolver?: FrontendPluginInfoResolver;
    }

    Advanced, more rarely used options.

    Type Declaration

    • OptionalconfigLoader?: () => Promise<{ config: Config }>

      Sets a custom config loader, replacing the builtin one.

      This can be used e.g. if you have the need to source config out of custom storages.

    • OptionalextensionFactoryMiddleware?: ExtensionFactoryMiddleware | ExtensionFactoryMiddleware[]

      Applies one or more middleware on every extension, as they are added to the application.

      This is an advanced use case for modifying extension data on the fly as it gets emitted by extensions being instantiated.

    • OptionalloadingElement?: ReactNode

      The element to render while loading the app (waiting for config, features, etc).

      This is the <Progress /> component from @backstage/core-components by default. If set to null then no loading fallback element is rendered at all.

    • OptionalpluginInfoResolver?: FrontendPluginInfoResolver

      Allows for customizing how plugin info is retrieved.

    The list of features to load.

    Methods