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

    Function planFlag

    • Resolves a per-plan boolean through the override chain.

      An empty string defers rather than reading as false: url.searchParams.get() returns '' for ?prefill=, and a stray ampersand must not switch behaviour off.

      Parameters

      • explicit: string | null | undefined

        the most specific signal, usually a request parameter; '' and null defer

      • envValue: string | undefined

        an environment override; same three values defer

      • paidDefault: boolean

        what the paid plan gets when nothing overrides

      • Optionalenv: PlanEnv

        the environment carrying PLAN

      Returns boolean