Sanity Library Reference Docs
    Preparing search index...

    Function referenceRobotToken

    • Beta

      Creates a reference to a robot token in another stack.

      referenceRobotToken({
      name: 'editor-token',
      stack: 'editorial',
      })

      Referencing Robot Tokens via Blueprints is experimental. This feature is stabilizing but may still be subject to breaking changes.

      Parameters

      • params: BlueprintCrossStackReferenceConfig

        The parameters for referencing the robot token

        The configuration for referencing a resource in another stack.

        • OptionallocalName?: string

          The local name of the resource, defaults to the name of the other resource

        • name: string

          The name of the resource in the other stack

        • stack: string

          The name or id of the stack being referenced

      Returns BlueprintResource

      The robot token reference