No access to preview KV storage via a worker

Hello, my team has built a worker and we want to run some tests that will make use of a preview kv storage that has been setup for this reason in our .toml file.
The command that we use to start our worker is wrangler dev --env staging. We have put manually some records inside this kv storage and when we run the above command we expect our worker to have access to these records. The issue is that this is not the case for us. It’s like the remote kv storage identified by the above mentioned preview id is unreachable.
Any ideas why this is happening?

wrangler v3 runs locally by default, which means no access to KV, etc. You need to add the --remote option to facilitate this. (This is noted in the terminal.)


Yes that worked, thank you very much for letting me know of this option!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.