I somehow understand it needs time to fix it, but shouldn't WE have a test period for this kind of t
I somehow understand it needs time to fix it, but shouldn't WE have a test period for this kind of things?






import { KVNameSpace } from '@cloudflare/kv-name-space' but it doesn;t workit doesn;t work@JamieD132 What is the error you're getting and what do you expect to get?

wrangler kv bulk put entries: https://developers.cloudflare.com/workers/wrangler/commands/#kv-bulk-putwrangler dev) and trying to access some KV keys I've set using wrangler kv key put ... --local <key> <value> but my <kvnamespace>.get in my worker always returns null. I tried listing them from the worker too, and there's no keys at all. Listing them with "kv key list --local" tells me they are there. I can also read them with kv key get. Any suggestions on where I should start to dig to figure it out?npm run preview and in deploy, get some error: Error adding key-value pair: Error: Error adding key-value pair: ReferenceError: env is not definedexport const runtime = 'edge';
export const putKV = async (key, value) => {
try {
await env.KV_PREVIEW.put(key, value);
return;
} catch (error) {
throw new Error(Error adding key-value pair: ${error});
}
};
async function setKVValueWithTimestamp(key, value, cacheTtl) {
const timestamp = Date.now();
const data = JSON.stringify({ value, timestamp });
await KV_NAMESPACE.put(key, data, { expirationTtl: cacheTtl });
}wrangler kv key put ... --local <key> <value>kv key getnpm run previewdeploy Error adding key-value pair: Error: Error adding key-value pair: ReferenceError: env is not definedError adding key-value pair: ${error}