Skip to content

Commit 744c8ed

Browse files
committed
Adding a note component to address adding DO to existing Worker
1 parent fdbffb8 commit 744c8ed

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,15 @@ Move into your new directory:
6262
cd durable-object-starter
6363
```
6464

65+
:::note[Adding a Durable Object to an existing Worker]
66+
67+
To add a Durable Object to an existing Worker, you need to:
68+
69+
- Modify the code of the existing Worker code (as shown in subsequent steps).
70+
- Update the Wrangler configuration file of your existing Worker to bind the Durable Object to the Worker.
71+
72+
:::
73+
6574
## 2. Write a Durable Object class using SQL API
6675

6776
Before you create and access a Durable Object, its behavior must be defined by an ordinary exported JavaScript class.

0 commit comments

Comments
 (0)