Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/bright-planes-yawn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@opennextjs/cloudflare": patch
---

Fix check for missing CACHE_PURGE_ZONE_ID
2 changes: 1 addition & 1 deletion packages/cloudflare/src/api/overrides/internal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export async function purgeCacheByTags(tags: string[]) {
}

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