Hi, I join here because I'm very upset with Workers KV. After 2 hours trying everything, I've notice

Hi, I join here because I'm very upset with Workers KV. After 2 hours trying everything, I've noticed that KV in local development doesn't fetch the KVs unless you create them inside the local project via local Worker. It doesn't appear in any documentation, and it has no sense. You creates a namespace with Wrangler then it's created in the Dashboard, and also is accesible in your local project. Okay. Now, you creates a new key-value pair which is accesible in the Dashboard. You want to access it from your local project with an env.whatever.get(), and in my case, I spend almost 2 hours thinking that I've some kind of environment problem in my project, because you don't get any pair. Why? Because it only works in production. If I want to use the pairs created using Wrangler or the Dashboard I can't! I've to create via Worker the same pairs to have the same key pairs. At least, this is the only way that I have been able to deduce. But in the documentation, there is nothing regarding this
Was this page helpful?