drupflare/worker - v1.0.0
    Preparing search index...

    Interface SiteWorkerEnv

    What the front end requires: the namespace is not optional for a Worker that only proxies.

    interface SiteWorkerEnv {
        ASSETS: {};
        CACHE_DATA_MAX_ROWS?: string | number;
        CFW_EMAIL_BINDING?: string;
        CONFIG_KV?: PlanKv | null;
        CRON_MAX_MS?: string | number;
        CRON_MAX_ROWS?: string | number;
        CRON_MAX_UNITS?: string | number;
        CRON_QUEUE_BATCH_SIZE?: string | number;
        DRUPAL_CRON?: string;
        FILL_BATCH_SIZE?: string | number;
        FILL_BATCH_WALL_MS?: string | number;
        FLEET_DB?: FleetDb | null;
        GC_INTERVAL_MS?: string | number;
        GEN_BUCKET_MS?: string | number;
        HEAP_RESTORE_CHUNKS?: string | number;
        HEAP_SNAPSHOT?: string;
        HTTP_DRAIN_LIMIT?: string | number;
        HTTP_DRAIN_ON_ALARM?: string;
        KEEP_WARM_MS?: string | number;
        LAZY_FS_BUDGET_BYTES?: string | number;
        LAZY_MOUNT?: string;
        MIGRATE_CHUNKS_PER_INVOCATION?: string | number;
        MIGRATE_ENGINE?: string;
        MIGRATE_SELF_DRIVE?: string;
        MIRROR_LIMIT?: string | number;
        MODULE_PACK?: R2Bucket;
        PAGE_KV?: PageKv | null;
        PAGE_KV_ENABLED?: string | null;
        PAGE_KV_TTL?: string | number | null;
        PLAN?: string;
        PREFILL?: string;
        PREFILL_ON_SAVE?: string;
        PREFILL_ON_SAVE_LIMIT?: string | number;
        PW_DIAGNOSTICS?: string;
        PW_SQL_TRACE?: string;
        PW_SQL_TRACE_FROM?: string | number;
        RENDER_BUDGET_MS?: string | number;
        SITE: DurableObjectNamespace;
        SITE_DB_PREFIX?: string;
        SITE_ID?: string;
        SQL_CHUNK_PREFIX?: string;
        UPDB_ALLOW_UNBOUNDED?: string;
        UPDB_CHECK_REQUIREMENTS?: string;
        UPDB_FLUSH_SPLIT?: string;
        UPDB_MAX_ATTEMPTS?: string | number;
        UPDB_MAX_BEATS?: string | number;
        UPDB_MAX_COLD_WAITS?: string | number;
        UPDB_MAX_PASSES?: string | number;
        UPDB_ON_ABORT?: string;
        UPDB_RETRY_POLICY?: string;
        UPDB_SNAPSHOT_MAX_ROWS?: string | number;
        WATCHDOG_ROW_LIMIT?: string | number;
        WINDOW_MAX_FILLS?: string | number;
        WINDOW_SITES?: string;
        WINDOW_WALL_MS?: string | number;
    }

    Hierarchy (View Summary)

    Index
    ASSETS: {}

    not optional: every mount reads its pack through this, so an object without it cannot boot

    CACHE_DATA_MAX_ROWS?: string | number
    CFW_EMAIL_BINDING?: string
    CONFIG_KV?: PlanKv | null

    The runtime-configurable settings namespace, holding the plan override.

    OPTIONAL, like PAGE_KV: an unbound namespace leaves the deployed PLAN var in force rather than breaking, which is what lets this ship before any namespace exists and what keeps a KV outage from taking a paid site to free.

    CRON_MAX_MS?: string | number
    CRON_MAX_ROWS?: string | number
    CRON_MAX_UNITS?: string | number
    CRON_QUEUE_BATCH_SIZE?: string | number
    DRUPAL_CRON?: string
    FILL_BATCH_SIZE?: string | number
    FILL_BATCH_WALL_MS?: string | number
    FLEET_DB?: FleetDb | null

    the cross-site inventory; OPTIONAL, because a single site does not need one

    GC_INTERVAL_MS?: string | number
    GEN_BUCKET_MS?: string | number
    HEAP_RESTORE_CHUNKS?: string | number
    HEAP_SNAPSHOT?: string
    HTTP_DRAIN_LIMIT?: string | number
    HTTP_DRAIN_ON_ALARM?: string
    KEEP_WARM_MS?: string | number
    LAZY_FS_BUDGET_BYTES?: string | number
    LAZY_MOUNT?: string
    MIGRATE_CHUNKS_PER_INVOCATION?: string | number
    MIGRATE_ENGINE?: string
    MIGRATE_SELF_DRIVE?: string
    MIRROR_LIMIT?: string | number
    MODULE_PACK?: R2Bucket
    PAGE_KV?: PageKv | null

    The cross-colo page tier. OPTIONAL: the tier is absent rather than broken when it is not bound, which is what lets this ship before any namespace exists.

    PAGE_KV_ENABLED?: string | null
    PAGE_KV_TTL?: string | number | null
    PLAN?: string
    PREFILL?: string
    PREFILL_ON_SAVE?: string
    PREFILL_ON_SAVE_LIMIT?: string | number
    PW_DIAGNOSTICS?: string
    PW_SQL_TRACE?: string

    logs every Drupal statement through console.log, which survives an object reset

    PW_SQL_TRACE_FROM?: string | number

    first statement number to log, so a 256 KB tail budget covers the END of a long run

    RENDER_BUDGET_MS?: string | number
    SITE: DurableObjectNamespace
    SITE_DB_PREFIX?: string
    SITE_ID?: string

    The site every request on this deployment resolves to, unless KV maps the host to another.

    OPTIONAL and second in the chain: KV, then this, then the hostname, then site. See src/ops/site-id.ts for why the two optional layers sit above the derived one.

    SQL_CHUNK_PREFIX?: string
    UPDB_ALLOW_UNBOUNDED?: string
    UPDB_CHECK_REQUIREMENTS?: string
    UPDB_FLUSH_SPLIT?: string
    UPDB_MAX_ATTEMPTS?: string | number
    UPDB_MAX_BEATS?: string | number
    UPDB_MAX_COLD_WAITS?: string | number
    UPDB_MAX_PASSES?: string | number
    UPDB_ON_ABORT?: string
    UPDB_RETRY_POLICY?: string
    UPDB_SNAPSHOT_MAX_ROWS?: string | number
    WATCHDOG_ROW_LIMIT?: string | number
    WINDOW_MAX_FILLS?: string | number
    WINDOW_SITES?: string
    WINDOW_WALL_MS?: string | number