From c34418e9644b5bd3e595c21ef9b1de3f892596ff Mon Sep 17 00:00:00 2001 From: Jeff Emmett <46964190+Jeff-Emmett@users.noreply.github.com> Date: Wed, 27 Nov 2024 11:34:02 +0700 Subject: [PATCH] fix durable object reference --- 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 546fec6..50c4da9 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 as jeffemmett_canvas_TldrawDurableObject } from './TldrawDurableObject' +export { TldrawDurableObject } from './TldrawDurableObject' // Define security headers const securityHeaders = { diff --git a/wrangler.toml b/wrangler.toml index 29e2e1b..c6397bc 100644 --- a/wrangler.toml +++ b/wrangler.toml @@ -16,12 +16,12 @@ upstream_protocol = "https" [durable_objects] bindings = [ - { name = "TLDRAW_DURABLE_OBJECT", class_name = "jeffemmett_canvas_TldrawDurableObject" }, + { name = "TLDRAW_DURABLE_OBJECT", class_name = "TldrawDurableObject" }, ] [[migrations]] tag = "v1" -new_classes = ["jeffemmett_canvas_TldrawDurableObject"] +new_classes = ["TldrawDurableObject"] [[r2_buckets]] binding = 'TLDRAW_BUCKET'