Skip to content

Commit dc6c11c

Browse files
committed
Adding migrations to inheritable fields for
Workers.
1 parent 670a36a commit dc6c11c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/content/docs/workers/wrangler/configuration.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,9 @@ At a minimum, the `name`, `main` and `compatibility_date` keys are required to d
182182
* `assets` <Type text="Assets" /> <MetaInfo text="optional" />
183183
- Configures static assets that will be served. Refer to [Assets](/workers/static-assets/binding/) for more details.
184184

185+
* `migrations` <Type text="object"/> <MetaInfo text="optional"/>
186+
- Maps a Durable Object from a class name to a runtime state. This communicates the changes to the Workers runtime and provides the runtime with instructions on how to deal with those changes. Refer to [Durable Objects migrations](/durable-objects/reference/durable-objects-migrations/#durable-object-migrations-in-wranglertoml).
187+
185188
## Non-inheritable keys
186189

187190
Non-inheritable keys are configurable at the top-level, but cannot be inherited by environments and must be specified for each environment.

0 commit comments

Comments
 (0)