We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fdbffb8 commit 744c8edCopy full SHA for 744c8ed
src/content/docs/durable-objects/get-started.mdx
@@ -62,6 +62,15 @@ Move into your new directory:
62
cd durable-object-starter
63
```
64
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
74
## 2. Write a Durable Object class using SQL API
75
76
Before you create and access a Durable Object, its behavior must be defined by an ordinary exported JavaScript class.
0 commit comments