v2.4.2

cloudflare

Cloudflare Workers KV redirect writer.

FieldValue
Serverless servicedrive-api-cloudflare
Runtimenodejs22.x, arm64
Regionap-southeast-2
Deployed HTTP operations1
Local worker harnesses0
OpenAPI/openapi/cloudflare.yaml · interactive

Deployed routes

MethodPathAuthSummary
POST/cloudflare/redirection/addAPI keyAdd a redirect entry to Cloudflare KV

Behaviour notes

  • The route writes to Cloudflare Workers KV, not Cloudflare bulk redirect rules.
  • Request body is {redirectFrom, redirectTo}. Both values must start and end with /, must not be /, and must not be equal.
  • The handler checks the KV key before writing; existing or unreadable keys return 409.
  • Cloudflare account, namespace, and token configuration is resolved through SSMConfigResolver.

Source map

  • services/cloudflare/serverless.yml
  • services/cloudflare/functions/addRedirection.ts
  • services/cloudflare/types/
Esc