Skip to content

Conversation

alex-all3dp
Copy link
Contributor

The credentials check in internalPurgeCacheByTags only skips the operation if both required env vars are missing. However when an API token is provided but CACHE_PURGE_ZONE_ID is missing (or vice versa) it will proceed to execute a failing purge request.

Log example with missing zone id but existing token:

Bildschirmfoto 2025-09-03 um 12 11 53

Copy link

changeset-bot bot commented Sep 3, 2025

🦋 Changeset detected

Latest commit: 900e8b7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@opennextjs/cloudflare Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

pkg-pr-new bot commented Sep 3, 2025

Open in StackBlitz

npm i https://pkg.pr.new/@opennextjs/cloudflare@872

commit: 900e8b7

@alex-all3dp alex-all3dp changed the title Fix check for missing CACHE_PURGE_ZONE_ID Fix check for missing CACHE_PURGE_ZONE_ID Sep 3, 2025
Copy link
Contributor

@vicb vicb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thanks!

@vicb vicb merged commit dc76d6e into opennextjs:main Sep 4, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants