Is there a way to bind multiple workers

Is there a way to bind multiple workers into a single DO? When I tried doing this by specifying the bindings in the seperate wrangler.toml and re-exporting the DO in both index.ts of the two workers, Cloudflare creates two seperate DO's with the worker name prefixed in front. I can see how this is expected behaivour, but is there any way I can bind multiple workers into the same DO?
1 Reply
josh
josh6mo ago
Yeah. This works and is being used internally. You shouldn't have to re-export the DOs in your worker code. Only import the type if you are using TS.
Want results from more Discord servers?
Add your server