Key-Value bindings not visible in Cloudflare Dashboard
Hi guys,
I have a problem, in which I have a wrangler.toml config:
kv_namespaces = [ { binding = "kv", id = "XYZ", preview_id = "XYZ" }, ] durable_objects.bindings = [ { name = "CONFIGURATION", class_name = "SomeStore" }, ]And then in the code I am reading / writing values from key value binding. Write operation:
await env.kv.put("SOME_PROP", {"SOME_PROP": "SOME_VAUE"}
);
Later I am able to read this value:
const id = env.CONFIGURATION.idFromName('SOME_PROP'); return env.CONFIGURATION.get(id); await this.env.kv.get(key)But here is the question -> why is this value (
{"SOME_PROP": "SOME_VAUE"}
) not visible in the Cloudflare Dashboard -> Workers & Pages -> KV -> (my namespace by id) -> KV Pairs?2 Replies
By default wrangler dev runs in local/a simulation of resources. You have to do
wrangler dev --remote
to touch live resources, and keep in mind too that it'll use the preview_id and not your normal oneI wish I have asked this question sooner, all clear, thank you!