From 5be8991028c9d11c3c71a4d8f66d08dfbdd25bbc Mon Sep 17 00:00:00 2001 From: Jeff Emmett <46964190+Jeff-Emmett@users.noreply.github.com> Date: Wed, 27 Nov 2024 11:21:33 +0700 Subject: [PATCH] fix durableobject --- worker/worker.ts | 2 +- wrangler.toml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/worker/worker.ts b/worker/worker.ts index 50c4da9..546fec6 100644 --- a/worker/worker.ts +++ b/worker/worker.ts @@ -4,7 +4,7 @@ import { handleAssetDownload, handleAssetUpload } from './assetUploads' import { Environment } from './types' // make sure our sync durable object is made available to cloudflare -export { TldrawDurableObject } from './TldrawDurableObject' +export { TldrawDurableObject as jeffemmett_canvas_TldrawDurableObject } from './TldrawDurableObject' // Define security headers const securityHeaders = { diff --git a/wrangler.toml b/wrangler.toml index c6397bc..ff7c09d 100644 --- a/wrangler.toml +++ b/wrangler.toml @@ -16,12 +16,12 @@ upstream_protocol = "https" [durable_objects] bindings = [ - { name = "TLDRAW_DURABLE_OBJECT", class_name = "TldrawDurableObject" }, + { name = "TLDRAW_DURABLE_OBJECT", class_name = "jeffemmett-canvas_TldrawDurableObject" }, ] [[migrations]] tag = "v1" -new_classes = ["TldrawDurableObject"] +new_classes = ["jeffemmett-canvas_TldrawDurableObject"] [[r2_buckets]] binding = 'TLDRAW_BUCKET'