How to use remote kv worker while running in local environment?
According to the docs, I have added the required flags
Even after then it is still throwing this error:
5 Replies
In your
wrangler.toml
, instead of , put , which should stop it complaining.But I want to write (modify) the data of production kv store from local.
Using
preview_id
, will create a separate kv store.Not if you set the
preview_id
to the same ID as your production ID.ahhh! didn't thought of that.
That's basically a way of consenting saying "Yeah, I know I'm running on production data. I'm willing to take that risk"
Since you have to manually do it, it's your responsibility if you break something.