@drupflare/workforce - v0.3.0
    Preparing search index...

    Class Routing

    Index
    • the account's workers.dev name, which every subdomain-enabled Worker sits under

      Returns Promise<string | null>

    • Parameters

      • input: { environment?: string; hostname: string; service: string; zoneId: string }

      Returns Promise<WorkerDomain>

    • Parameters

      • zoneId: string
      • routeId: string

      Returns Promise<void>

    • where a subdomain-enabled Worker answers, or null when the account has no subdomain yet

      Parameters

      • name: string

      Returns Promise<string | null>

    • Turns the workers.dev hostname on or off.

      previews is separate and worth setting deliberately: a managed preview wants exactly one URL, so it enables the subdomain and turns per-version preview URLs off. Preview URLs also carry no logs at all, which is the other reason not to rely on them.

      Parameters

      • name: string
      • options: { enabled: boolean; previews?: boolean }

      Returns Promise<SubdomainState>