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

    Function selectBackend

    • Which backend this site's SQL goes to.

      Defaults to the object's own storage (a render costs no network). A deployment that asked for Hyperdrive without binding one reads as unavailable, with why, not as a silent fallback. An external backend needs the park: cfwSqlExec is synchronous and a pg query is not.

      Parameters

      • env: BackendEnv | undefined

        the Worker env; HYPERDRIVE is a binding rather than a var, so a KV override cannot talk a deploy that omits it into using it.

      Returns BackendSelection