In development, you should use a separate kv names...
# workers-help
w
Getting this error when binding a KV namespace. Not sure why this is an error, my script i've made is entirely for playing around with. I suppose it's "production" in a sense but i'm still just playing around with it
s
You can add
preview_namespace_id
with the same ID as your normal
namespace_id
Or you can use
--local
w
I'm getting an error when I add it as "preview_namespace_id" X [ERROR] Processing wrangler.toml configuration: - "kv_namespaces[1]" bindings should have a string "id" field but got {"binding":"MYKV","preview_namespace_id":"022ed79fd7824d9b984a3222fb46496a"}. - MYKV assigned to multiple KV Namespace bindings. - Bindings must have unique names, so that they can all be referenced in the worker. Please change your bindings to have unique names.
s
It should be in the same object
w
ah and it's preview_id too
s
(also it's
preview_id
, not preview_namespace, my bad)
yeah 😅
w
Yep all good, thanks for your help
s
Awesome
2 Views