Skip to content

Commit

Permalink
type'
Browse files Browse the repository at this point in the history
  • Loading branch information
emmerich committed Apr 5, 2024
1 parent 5b30483 commit 7c0cd40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/cache/cloudflare-kv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ async function getKVNamespace(): Promise<KVNamespace | null> {

const cloudflare = getOptionalRequestContext();
if (cloudflare) {
console.log('return cloudflare.env.CACHE_KV', !!cloudflare.env.CACHE_KV);
console.log(`return cloudflare.env.CACHE_KV: ${'CACHE_KV' in cloudflare.env ? !!cloudflare.env.CACHE_KV : null}`);
// @ts-ignore
return cloudflare.env.CACHE_KV ?? null;
}
Expand Down

0 comments on commit 7c0cd40

Please sign in to comment.