Skip to content

Commit ea40879

Browse files
Oxyjunelithrar
authored andcommitted
Small improvements to Get started for DO, suggested by community. (#17276)
1 parent d25a271 commit ea40879

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/content/docs/durable-objects/get-started/walkthrough.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ Refer to [Access a Durable Object from a Worker](/durable-objects/best-practices
191191

192192
## 5. Configure Durable Object bindings
193193

194-
[Bindings](/workers/runtime-apis/bindings/) allow your Workers to interact with resources on the Cloudflare developer platform. The Durable Object bindings in your Worker project's `wrangler.toml` will include a binding name (for this guide, use `MY_DURABLE_OBJECT`) and the class name (`MyDurableObject`).
194+
[Bindings](/workers/runtime-apis/bindings/) allow your Workers to interact with resources on the Cloudflare developer platform. The Durable Object bindings in your Worker project's `wrangler.toml` will include a binding name (for this guide, use `MY_DURABLE_OBJECT`) and the class name (`MyDurableObject`). Refer to [Wrangler Configuration](/workers/wrangler/configuration/#durable-objects) for more detail.
195195

196196
```toml
197197
[[durable_objects.bindings]]
@@ -210,7 +210,8 @@ The `[[durable_objects.bindings]]` section contains the following fields:
210210

211211
- `name` - Required. The binding name to use within your Worker.
212212
- `class_name` - Required. The class name you wish to bind to.
213-
- `script_name` - Optional. Defaults to the current [environment's](/durable-objects/reference/environments/) Worker code.
213+
- `script_name` - Optional. The name of the Worker if the Durable Object is external to this Worker.
214+
- `environment` - Optional. The environment of the `script_name` to bind to.
214215

215216
## 6. Configure Durable Object classes with migrations
216217

0 commit comments

Comments
 (0)