How do you write to Cloudflare KV when developing locally with wrangler dev?
I remember that you could write directly to Cloudflare KV's namespace when running wrangler dev locally.
This is what my wrangler.toml looks like.
I am currently running by calling
wrangler dev
.
I have logged in with wrangler. It was a while ago since I did this, maybe an update have come or so.
Right now it writes to local cache at .wrangler/kv
6 Replies
dev
in Wrangler 3 runs locally.
If you want to access your actual remote namespaces, add --remote
to the end of wrangler dev
Thanks Kian, I had missed that flag.
I also forgot to add a
preview_id
to my kv_namespace.
Now it writes to the preview_id
when developing locally.
Thanks again!i still cant access my kv in dashboard when coding
i had same error
this is what happens when i do that
did you add the same id for both preview and id?
ideally that must have worked