Sanity Library Reference Docs
    Preparing search index...

    Interface BlueprintMediaLibraryConfigResourceBeta

    Represents a singleton Media Library configuration resource.

    This feature is subject to breaking changes.

    The Media Library is a Sanity-owned singleton, so this resource carries no application identity of its own — it only names the target appType, the config root, and its fields. The provider resolves the organization's media library installation id at deploy time.

    interface BlueprintMediaLibraryConfigResource {
        appType: "media-library";
        fields: BlueprintMediaLibraryField[];
        mfManifest?: Record<string, unknown>;
        name: string;
        root: string;
        type: "sanity.installation.config";
        version?: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    appType: "media-library"

    The target installation this config applies to. Set by the definer.

    The custom fields the Media Library config exposes.

    mfManifest?: Record<string, unknown>

    Module federation manifest

    name: string

    The name of the resource. Unique within the blueprint. e.g. 'sync-webhook'

    root: string

    The config build directory, relative to the blueprint file. Contains the config's package.json; every field src is resolved relative to it.

    type: "sanity.installation.config"

    The type of the resource. e.g. 'sanity.project.webhook'

    version?: string

    The local version of sanity at deployment. Populated during deployment.