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'