Skip to content

[DOCS] Document Cloudflare Workers deployment target (spec.deployment.type: cloudflare) #246

Closed

Description

Summary

The ADL schema now supports a fourth deployment target: cloudflare (Cloudflare Workers), alongside kubernetes, cloudrun, and vercel. The central docs should document it, mirroring how the Vercel target is covered.

User-facing change

spec.deployment.type accepts cloudflare, configured via a new spec.deployment.cloudflare block with fields: name, accountId, compatibilityDate, compatibilityFlags, routes, workersDev, and environment.

Like Vercel and unlike Kubernetes/Cloud Run, Workers deploy from source via wrangler rather than a prebuilt container image (no image sub-block). It models Cloudflare Workers (not Pages). Workers run on the V8-isolate edge runtime, so Node.js APIs come from the nodejs_compat compatibility flag rather than a runtime enum. Plain-text vars go in environment with ${VAR} placeholders; real secrets are set out-of-band with wrangler secret put.

Example:

spec:
  deployment:
    type: cloudflare
    cloudflare:
      name: customer-support-agent
      accountId: ${CLOUDFLARE_ACCOUNT_ID}
      compatibilityDate: "2025-01-01"
      compatibilityFlags: [nodejs_compat]
      routes:
        - agent.example.com/*
      workersDev: false
      environment:
        LOG_LEVEL: info

Affected pages

  • Deployment reference (the spec.deployment fields table and a new Cloudflare section).
  • Deployment examples (a type: cloudflare example manifest and the highlights list).

Source

Schema and in-repo docs updated in inference-gateway/adl PR #74 (inference-gateway/adl#74), tracking issue inference-gateway/adl#57.

Activity

  1. added
    documentation
    on Jun 18, 2026
  2. moved this from In progress to QA in 2026on Jun 18, 2026
  3. moved this from QA to Todo in 2026on Jun 18, 2026
  4. edenreich commented on Jun 18, 2026

    @edenreich
    Contributor

    @claude Can you document it?

  5. inference-gateway-maintainer commented on Jun 18, 2026

    @inference-gateway-maintainer
    ContributorAuthor

    Claude finished @edenreich's task in 7m 14s —— View job


    Cloudflare Workers deployment target - already documented

    Good news - this is already covered, so I did not open a redundant PR.

    The Cloudflare Workers target was documented in adl-cli.md by PR #248 (merged today), which closed the sibling issue #247 ("Document Cloudflare Workers deployment target in adl-cli", sourced from the adl-cli repo). This issue #246 tracks the same user-facing change from the schema side (adl PR #74). In our central docs, both the schema field reference and the examples live in the one adl-cli.md "Deployment" section, and adl-cli.md is the only page that enumerates ADL deployment targets - so #246 is effectively a duplicate that is already satisfied.

    Where each item from this issue is covered

    Requested in #246 Covered in adl-cli.md
    spec.deployment.type accepts cloudflare --deployment flag table (line 324) + section header (line 1032)
    New Cloudflare section #### Cloudflare Workers (lines 1032-1097)
    type: cloudflare example manifest lines 1036-1051
    Fields: name, accountId, compatibilityDate, compatibilityFlags, routes, workersDev, environment fields table (lines 1055-1063) - all seven present
    Highlights list (what it generates) "This generates:" list (lines 1065-1068) + generated wrangler.toml (lines 1070-1084)
    Deploys from source via wrangler, no image block, like Vercel line 1034
    nodejs_compat flag rather than a runtime enum lines 1043-1044, 1060
    Secrets out-of-band via wrangler secret put; only ${VAR} in [vars] line 1053
    Models Workers, not Pages line 1034
    Defaults (compatibilityDate -> 2025-01-01, compatibilityFlags -> [nodejs_compat], name -> metadata.name) lines 1057, 1059, 1060

    Recommendation

    Close #246 as resolved by #248 (duplicate of #247), unless you want one of the optional improvements below.

    Optional follow-ups (happy to do either on your go-ahead)

    1. Consolidated spec.deployment overview table. [DOCS] Document Cloudflare Workers deployment target (spec.deployment.type: cloudflare) #246 mentions "the spec.deployment fields table". Our docs currently use per-target subsections (Kubernetes / Cloud Run / Vercel / Cloudflare) with no single parent table listing the type enum and the four sub-blocks. I left this as-is because adding one only for Cloudflare would be inconsistent with the other three. If you'd like, I can add a short spec.deployment overview table covering all four targets at the top of the Deployment section.
    2. TypeScript planned wording. adl.md (line 10) and adl-cli.md (line 16) still say projects generate "in Go or Rust (TypeScript planned)", while the Cloudflare target is described as "TypeScript-only" and the Vercel section references TypeScript output. If TypeScript generation has landed, those "planned" notes likely need updating - I can reconcile them in a follow-up if you confirm.
  6. moved this from Todo to Done in 2026on Jun 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentation

    Type

    No type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions