I'm using Cloudflare Pages with KV.
I'm using Cloudflare Pages with KV.
My goal is to set up KV for different environments, to have:
1. one KV id for production, and
2. another KV id for all other environments (preview URLs, local dev with miniflare maybe, etc)
The docs show two approaches:
v1
OR
v2 (using environments)
- which is preferred and why?
- for the first version, how does Cloudflare differentiate when to use the KV represented by
My goal is to set up KV for different environments, to have:
1. one KV id for production, and
2. another KV id for all other environments (preview URLs, local dev with miniflare maybe, etc)
The docs show two approaches:
v1
OR
v2 (using environments)
- which is preferred and why?
- for the first version, how does Cloudflare differentiate when to use the KV represented by
id or preview_id?