Bindings
Connect each binding of your Wrangler config to a resource in your Cloudflare account. Pick a resource that you have, or create one.
A binding gives your Worker access to a Cloudflare resource, for example a KV namespace or a D1 database. You declare bindings in your Wrangler config. Conic reads them, and you select a resource for each binding.
Resources that Conic can create
| Binding | Resource |
|---|---|
| KV | KV namespace |
| D1 | D1 database |
| R2 | R2 bucket |
| Queues | Queue |
| Hyperdrive | Hyperdrive config |
| Vectorize | Vectorize index |
Bindings that need no resource, for example AI, Durable Objects and Workflows, deploy as they are.
Select a resource
Open the project, click Settings, then Resources. The list shows each binding of your Wrangler config.
For each binding, do one of these:
- Pick a resource that you have in your Cloudflare account.
- Create a new resource. Conic creates it in your Cloudflare account.
A binding with Missing: pick one to deploy has no resource. The deployment cannot start until you select one.
Resources in previews
By default, each binding of a preview uses a Separate preview resource. Conic creates this empty resource the first time a preview needs it. All previews of the project use the same preview resource. A preview cannot write to your production data.
To let previews use the production resource, select Same as production for the binding. The change applies from the next preview.
R2 is off on this account
R2 must be on in your Cloudflare account before Conic can create a bucket. Only the Cloudflare dashboard can turn it on. Turn on R2 in Cloudflare, then try again.
If you stop using Conic
Your resources are in your Cloudflare account. They stay there, with their data, and they continue to work.