cloudflare
Cloudflare Workers KV redirect writer.
| Field | Value |
|---|
| Serverless service | drive-api-cloudflare |
| Runtime | nodejs22.x, arm64 |
| Region | ap-southeast-2 |
| Deployed HTTP operations | 1 |
| Local worker harnesses | 0 |
| OpenAPI | /openapi/cloudflare.yaml · interactive |
Deployed routes
| Method | Path | Auth | Summary |
|---|
| POST | /cloudflare/redirection/add | API key | Add 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/