kv

what is the correct way to setup KV? I got a following error msg when running a wangler locally on my mac. There is descripancy between the official doc and the message below.

✘ [ERROR] In development, you should use a separate kv namespace than the one you'd use in production. Please create a new kv namespace with "wrangler kv:namespace create <name> --preview" and add its id as preview_id to the kv_namespace "mykv2" in your wrangler.toml


kv_namespaces = [
    { binding = "mykv2", id = "5c9844861b3d4a20b5bf8788af7d908b" }
]


preview_id did not work either.
Was this page helpful?