Sanity Library Reference Docs
    Preparing search index...
    • How to wire the generated resources into the developer's blueprint, where source is the contents of their sanity.blueprint.ts.

      Wiring needs exactly one resources array literal among the object arguments of the file's defineBlueprint(...) calls. None, or more than one, yields manual. Comments, strings, template literals, regular expressions and resources arrays outside those calls are left alone.

      Wiring requires a value import of workflowResources from ./workflows.blueprint (with an optional .ts extension) and a ...workflowResources spread. Missing imports or spreads are inserted. Other bindings of workflowResources require manual wiring.

      Parameters

      • source: string

      Returns BlueprintWiring