Skip to content

Commit 61b5c48

Browse files
committed
Fix check for missing CACHE_PURGE_ZONE_ID
1 parent 9b28913 commit 61b5c48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cloudflare/src/api/overrides/internal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export async function purgeCacheByTags(tags: string[]) {
4949
}
5050

5151
export async function internalPurgeCacheByTags(env: CloudflareEnv, tags: string[]) {
52-
if (!env.CACHE_PURGE_ZONE_ID && !env.CACHE_PURGE_API_TOKEN) {
52+
if (!env.CACHE_PURGE_ZONE_ID || !env.CACHE_PURGE_API_TOKEN) {
5353
// THIS IS A NO-OP
5454
error("No cache zone ID or API token provided. Skipping cache purge.");
5555
return "missing-credentials";

0 commit comments

Comments
 (0)