From f66fac74d03d2a1f56bde3983811e97e8dca7f05 Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Sun, 16 Nov 2025 02:47:42 -0700 Subject: [PATCH] update multiplayer sync --- wrangler.toml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/wrangler.toml b/wrangler.toml index 51e8b7f..1f32b86 100644 --- a/wrangler.toml +++ b/wrangler.toml @@ -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'