Tutorial with SQL API · Cloudflare Durab...
I stuck at step 6 in this tutorial, should I ignore it and continue (maybe just some ide problems)?
https://developers.cloudflare.com/durable-objects/get-started/tutorial-with-sql-api/#6-configure-durable-object-class-with-sqlite-storage-backend
Cloudflare Docs
Tutorial with SQL API · Cloudflare Durable Objects docs
This guide will instruct you through:
7 Replies
Hey! Is this what's being shown in your
wrangler.toml
file?Yes
btw, i'm trying to find a way to bind durable objects into my Remix Cloudflare Pages project but cannot find any docs about it 😐
Re: toml, yeah maybe just carry on? We always make sure to test these tutorials, so it should work (though please let me know if it doesn't)
Hmm let me see what I can find
https://developers.cloudflare.com/workers/wrangler/configuration/#durable-objects
https://developers.cloudflare.com/durable-objects/examples/use-kv-from-durable-objects/
I think those two exampels might be useful
I don't think we have a specific page dedicated to DO <> Remix CF Pages, but I believe the binding method is consistent
So, I have to create a separate DO Worker project and put the name of that Worker into the wrangler.toml file in my Remix CF Pages, right? 😅
https://developers.cloudflare.com/pages/functions/bindings/#interact-with-your-durable-object-namespaces-locally
I've followed these steps but after call the functions, but, an error occured: Cannot access
MyDurableObject#sayHello
as Durable Object RPC is not yet supported between multiple wrangler dev
sessions.Hey, you will have to use Service Bindings. You can learn more about it here: https://discord.com/channels/595317990191398933/773219443911819284/1320672135601061961
https://developers.cloudflare.com/workers/runtime-apis/bindings/service-bindings/ ^ not sure if that link is working
Cloudflare Docs
Service bindings - Runtime APIs · Cloudflare Workers docs
Facilitate Worker-to-Worker communication.
Thanks Jun for sharing the correct link!