Sanity Library Reference Docs
    Preparing search index...

    Interface BlueprintCrossStackReferenceResource<Type>

    A resource in another stack, as returned by referencers such as referenceProject. Add it to the resources of the blueprint, and pass it to the options that reference it.

    interface BlueprintCrossStackReferenceResource<Type extends string = string> {
        lifecycle: { ownershipAction: BlueprintOwnershipReferenceAction };
        name: string;
        type: Type;
    }

    Type Parameters

    • Type extends string = string

      The type of the resource, for example sanity.project

    Hierarchy (View Summary)

    Index

    Properties

    Properties

    lifecycle: { ownershipAction: BlueprintOwnershipReferenceAction }

    How deploys and destroys treat the resource, and which resources it depends on

    name: string

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

    type: Type

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