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

    Function writeSettings

    • Merges a patch into the KV settings document, keeping only allow-listed names.

      The filter is enforced here as well as in resolveSettings: a reader-side filter makes an unlisted name inert, a writer-side one makes it unstorable, which matters once another reader exists. A name mapped to null or '' is removed, not stored empty. PLAN is never accepted; it has writePlan.

      Parameters

      • kv: PlanKvWriter
      • patch: Record<string, unknown>
      • Optionalsite: string

      Returns Promise<SettingsWrite>