Skip to content

Commit

Permalink
fix DO migration docs links
Browse files Browse the repository at this point in the history
This brings it in line with the wrangler.toml defined in most places.

Specifically this brings the 2 touched files in line with the config
link at /packages/create-cloudflare/templates/hello-world-durable-object/js/wrangler.toml
  • Loading branch information
Frederik-Baetens committed Apr 22, 2024
1 parent 235c439 commit 36db360
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ compatibility_date = "<TBD>"

# Bind a Durable Object. Durable objects are a scale-to-zero compute primitive based on the actor model.
# Durable Objects can live for as long as needed. Use these when you need a long-running "server", such as in realtime apps.
# Docs: https://developers.cloudflare.com/workers/runtime-apis/durable-objects
# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#durable-objects
[[durable_objects.bindings]]
name = "MY_DURABLE_OBJECT"
class_name = "MyDurableObject"

# Durable Object migrations.
# Docs: https://developers.cloudflare.com/workers/learning/using-durable-objects#configure-durable-object-classes-with-migrations
# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#migrations
[[migrations]]
tag = "v1"
new_classes = ["MyDurableObject"]
Expand Down
16 changes: 8 additions & 8 deletions templates/worker-typescript/wrangler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ compatibility_date = "2022-10-10"

# Bind a Durable Object. Durable objects are a scale-to-zero compute primitive based on the actor model.
# Durable Objects can live for as long as needed. Use these when you need a long-running "server", such as in realtime apps.
# Docs: https://developers.cloudflare.com/workers/runtime-apis/durable-objects
# [[durable_objects.bindings]]
# name = "MY_DURABLE_OBJECT"
# class_name = "MyDurableObject"
# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#durable-objects
#[[durable_objects.bindings]]
#name = "MY_DURABLE_OBJECT"
#class_name = "MyDurableObject"

# Durable Object migrations.
# Docs: https://developers.cloudflare.com/workers/learning/using-durable-objects#configure-durable-object-classes-with-migrations
# [[migrations]]
# tag = "v1"
# new_classes = ["MyDurableObject"]
# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#migrations
#[[migrations]]
#tag = "v1"
#new_classes = ["MyDurableObject"]

0 comments on commit 36db360

Please sign in to comment.