main = "worker/worker.ts" compatibility_date = "2024-07-01" name = "jeffemmett-canvas" account_id = "0e7b3338d5278ed1b148e6456b940913" zone_id = "45c200f8dc2a01852e41b9bb09eb7359" [vars] TLDRAW_WORKER_URL = "https://jeffemmett-canvas.jeffemmett.workers.dev" [dev] port = 5172 ip = "0.0.0.0" local_protocol = "http" upstream_protocol = "https" # Set up the durable object used for each tldraw room [durable_objects] bindings = [ { name = "TLDRAW_DURABLE_OBJECT", class_name = "TldrawDurableObject" }, ] # Durable objects require migrations to create/modify/delete them [[migrations]] tag = "v1" new_classes = ["TldrawDurableObject"] # We store rooms and asset uploads in an R2 bucket [[r2_buckets]] binding = 'TLDRAW_BUCKET' bucket_name = 'jeffemmett-canvas' preview_bucket_name = 'jeffemmett-canvas-preview' # wrangler.toml (wrangler v3.79.0^) [observability] enabled = true head_sampling_rate = 1