Skip to content

docs: document cloudflare workers deployment target - #249

Closed
inference-gateway-maintainer[bot] wants to merge 1 commit into
mainfrom
docs/issue-246-20260618-2005
Closed

inference-gateway-maintainer[bot] wants to merge 1 commit into
mainfrom
docs/issue-246-20260618-2005

Conversation

@inference-gateway-maintainer

Copy link
Copy Markdown
Contributor

Summary

Documents the new spec.deployment.type: cloudflare (Cloudflare Workers) target in the ADL Schema Reference, mirroring how the Vercel target is covered. Source: inference-gateway/adl PR #74 (schema + reference docs), tracking inference-gateway/adl#57.

Added a #### Cloudflare subsection under adl-cli.md -> ADL Schema Reference -> Deployment with:

  • Prose explaining Workers deploy from source via wrangler (no image block, like Vercel), model Workers not Pages, and meet Node.js API needs via the nodejs_compat compatibility flag (V8-isolate edge runtime, no runtime enum).
  • A type: cloudflare example manifest.
  • A field table: name, accountId, compatibilityDate, compatibilityFlags, routes, workersDev, environment.
  • Secret handling: plain-text vars in environment with ${VAR} placeholders; real secrets via wrangler secret put.

Accuracy note

ADL PR #74 changed only the schema and reference docs; its body states the change is inert until adl-cli consumes it. I verified against the current adl-cli source that there are no wrangler templates and the --deployment flag still emits only kubernetes/cloudrun/vercel artifacts (the bundled schema does accept cloudflare, so adl validate passes). The new section documents the manifest schema and notes that adl-cli does not yet emit Worker files, instead of fabricating generated wrangler.toml output or a --deployment cloudflare flag that does not exist. The Key Features list, generate examples, --deployment flag table, and Generated Project Structure were intentionally left unchanged for that reason.

Verification

  • bun run format:check - clean
  • bun run lint:md - clean
  • bun run build - succeeds; the ${...} placeholders render as literal text in the SSR'd HTML.

Downstream

Cloudflare artifact generation in adl-cli (wrangler.toml / wrangler.jsonc, Worker entrypoint) is a separate follow-up already noted in the adl PR's cross-repo impact section; this docs PR can ship independently and the section will need a generated-output update once that lands.

Closes #246

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant