How to use Tanstack Start with Cloudflare Durable Objects?
Is it possible to define durable objects in wrangler configuration and use the same worker deployed for both start and durable object?
1 Reply
ratty-blush•4mo ago
yes but not in vite dev mode (i am learning how vite plugins work so maybe i'lll get it working in dev too)
like this
you will get this error
Error: Cannot access
LexiconDO#sayHello as Durable Object RPC is not yet supported between multiple
wrangler dev sessions.
in dev mode since it will spin up 2 workers in 2 separate environments and you can't do rpc, i've been working on a bypass that manually exports the durable object in nitro server.mjs so that there's only one worker so no rpc has to happen