Can two wrangler dev instances share a KV namespace?

I have kv_namespaces = [{ binding = "XYZ", id = "XYZ" }] (where id is just a copy of binding, not a real namespace on Cloudflare) in two different wrangler.toml files. I'm running wrangler dev in both directories. I want the second worker to be able to read the KV pairs set by the first worker. Is this possible? list() returns an empty array, as if no KV pairs have ever been set. I assume it's trying to read from two different KV.
1 Reply
kian
kian10mo ago
Add --persist-to to both commands and point them at the same place
Want results from more Discord servers?
Add your server