fix durable object reference

This commit is contained in:
Jeff Emmett 2024-11-27 11:34:02 +07:00
parent 1c8909ce69
commit c34418e964
2 changed files with 3 additions and 3 deletions

View File

@ -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 = {

View File

@ -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'