Skip to content

Commit 4cb81e6

Browse files
committed
Add changelog
1 parent 3e590e7 commit 4cb81e6

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
title: Automatic resource provisioning
3+
description: Wrangler can now automatically provision resources when deploying your Worker
4+
products:
5+
- workers
6+
date: 2025-10-24
7+
---
8+
9+
import { Render, TypeScriptExample, WranglerConfig } from "~/components";
10+
11+
If your Wrangler configuration file includes a KV namespace, D1 database, or R2 bucket that does not yet exist on your account, you can still develop locally and deploy your application seamlessly, without having to run additional commands to create resources.
12+
13+
You can set up your Wrangler configuration file like the following:
14+
15+
```jsonc
16+
{
17+
"kv_namespaces": {
18+
"binding": "MY_KV",
19+
},
20+
"r2_buckets": {
21+
"binding": "MY_R2",
22+
},
23+
"d1_databases": {
24+
"binding": "MY_D1",
25+
},
26+
}
27+
```
28+
29+
When using this feature, the `id` field for KV and D1 and the `bucket_name` for R2 are optional in your wrangler configuration.
30+
31+
When developing locally, you can interact with local versions of any KV, D1, R2 resources configured in your Wrangler configuration file, without having to include an id to existing resource
32+
33+
Once ready to deploy, run `npx wrangler deploy`. Cloudflare will automatically create the resources that do not exist and bind them to your worker. Future deployments will use the same created resources.

src/content/docs/workers/runtime-apis/bindings/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { DirectoryListing, WranglerConfig } from "~/components";
1212

1313
Bindings allow your Worker to interact with resources on the Cloudflare Developer Platform. Bindings provide better performance and less restrictions when accessing resources from Workers than the [REST APIs](/api/) which are intended for non-Workers applications.
1414

15-
The following bindings available today:
15+
The following bindings are available today:
1616

1717
<DirectoryListing />
1818

0 commit comments

Comments
 (0)