Manage Cloudflare Workers bindings (D1, R2, Vectorize, Queues, KV, service bindings). Use this skill when adding, modifying, or looking up bindings in any app — e.g. "add a KV binding", "what bindings does service have?", "set up a new D1 database".
wrangler.jsonc in the target app to add the bindingpnpm cf-typegen (in the app directory) to regenerate worker-configuration.d.tsc.env.<BINDING_NAME> (Hono) or the appropriate framework APIConfigured in apps/ui/wrangler.jsonc:
VALUE_FROM_CLOUDFLARE — KV text valueCHAT_SERVICE — Service binding to @portfolio/service WorkerConfigured in apps/service/wrangler.jsonc:
DB — D1 databaseVECTORIZE — Vectorize indexDOCUMENTS — R2 bucketService binding export: ChatServiceBinding (WorkerEntrypoint) exposes health() and chat(message) for Worker-to-Worker calls from apps/ui.
Configured in apps/document-processor/wrangler.jsonc:
| Environment | D1 | R2 Bucket | Vectorize | Queue |
|---|---|---|---|---|
| Local | portfolio-sql-staging (remote) | local storage | portfolio-embeddings-staging | portfolio-doc-processing-local |
| Staging | portfolio-sql-staging | portfolio-documents-staging | portfolio-embeddings-staging | portfolio-doc-processing-staging |
| Production | portfolio-sql-prod | portfolio-documents-prod | portfolio-embeddings-prod | portfolio-doc-processing-prod |