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

    Function resolvePlan

    • The effective plan: KV first, then the deployed var, then free.

      KV wins, so an upgrade is one KV key, picked up within PLAN_MEMO_MS. A missing binding, a KV error or an unrecognised value falls through to the var: this is the serving path, and a KV blip must not take a site from paid to broken.

      Parameters

      • Optionalenv: PlanEnv
      • Optionalkv: PlanKv
      • nowMs: number = ...
      • Optionalsite: string

      Returns Promise<ResolvedPlan>