update multiplayer sync

This commit is contained in:
Jeff Emmett 2025-11-16 02:47:42 -07:00
parent 783a8702f9
commit 8b947bbc47
1 changed files with 9 additions and 0 deletions

View File

@ -28,6 +28,15 @@ bindings = [
tag = "v1"
new_classes = ["AutomergeDurableObject"]
# Migration to handle transition from TldrawDurableObject to AutomergeDurableObject
# This ensures existing TldrawDurableObject instances can continue working
# while new connections use AutomergeDurableObject
[[migrations]]
tag = "v2"
# Note: We keep TldrawDurableObject as a stub (extends AutomergeDurableObject)
# so existing instances continue to work. New instances will use AutomergeDurableObject.
# The stub class ensures backward compatibility during the transition period.
[[r2_buckets]]
binding = 'TLDRAW_BUCKET'
bucket_name = 'jeffemmett-canvas'