Sanity Library Reference Docs
    Preparing search index...

    Interface BlueprintDurableConfigBeta

    Configuration for defining a durable function.

    Deploying Durable Functions via Blueprints is experimental.

    interface BlueprintDurableConfig {
        displayName?: string;
        durableTimeout?: string | number;
        env?: Record<string, string>;
        event?: BlueprintFunctionResourceContentLakeEvent;
        memory?: number;
        name: string;
        project?: string;
        robotToken?: string;
        runtime?: "node" | "nodejs22.x" | "nodejs24.x";
        src?: string;
        timeout?: number;
    }
    Index

    Properties

    displayName?: string

    Human-readable display name for the function

    durableTimeout?: string | number

    Total durable execution timeout in seconds.

    86_400 (24 hours)
    
    env?: Record<string, string>

    Environment variables provided to the function

    Trigger configuration

    memory?: number

    Memory allocation in gigabytes

    name: string

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

    project?: string

    The project ID of the project that contains your function.

    The project attribute must be defined if your blueprint is scoped to an organization.

    robotToken?: string

    Token provided during function invocation

    runtime?: "node" | "nodejs22.x" | "nodejs24.x"

    The runtime environment for the function (currently only Node.js is supported)

    'nodejs24.x'
    
    src?: string

    Path to the function source code

    functions/${name}

    timeout?: number

    Execution timeout in seconds