Setting DurableObject from wrangler.toml results in an error.

DurableObjects created with CloudflareWorker can be registered with CloudflarePages.

However, if I use wrangler pages download config <project-name> to create
wrangler.toml
and then deploy again, `This namespace no longer exists and can not be read from or written to. Please try using a different namespace.

# Generated by Wrangler on Fri Apr 12 2024 07:46:59 GMT+0900 (Japan Standard Time)
name = "pages"
pages_build_output_dir = ""
compatibility_date = "2024-04-11"


[[durable_objects.bindings]]
name = "SHARE_MESSAGE"
class_name = "ShareMessage"
script_name = "service"

[env.production]
compatibility_date = "2024-04-11"

[[env.production.durable_objects.bindings]]
name = "SHARE_MESSAGE"
class_name = "ShareMessage"
script_name = "service"
Was this page helpful?