Where do I create my Durable Object?
hey guys! quick question. Am I obligated to register a Durable Object through a Worker? because I'm using Cloudflare Pages so maybe there is a different API for this. Otherwise I'm thinking on just creating a Worker that is going to proxy to the Durable Object
4 Replies
just as ChatCGT recommends here: https://chat.openai.com/share/f9480870-30d7-4df9-bc9f-61a530d3f0a8
I believe need to create the durable object with workers but you can bind it to your pages project
thanks!
it seems that's the way
This was confusing, especially given the current CF docs https://developers.cloudflare.com/pages/functions/bindings/#durable-object-namespaces tell to look for "Add binding" wihin the Pages project, but that button doesn't exist there.
Cloudflare Docs
Bindings · Cloudflare Pages docs
A binding enables your Pages Functions to interact with resources on the Cloudflare developer platform. Use bindings to integrate your Pages Functions …