drupflare/drangler - v0.1.0
    Preparing search index...

    Function probeTargetPhp

    • Reads the interpreter version off a deployment's /php route.

      Returns null rather than throwing for every failure mode -- gated, absent, unreachable, or a body without a version -- because not being able to read it is the expected case and must degrade to the labelled fallback rather than failing a plan.

      Parameters

      • fetchFn: (input: string | URL | Request, init?: RequestInit) => Promise<Response>
      • origin: string
      • site: string = 'site'
      • timeoutMs: number = 15_000

      Returns Promise<TargetRuntime | null>