Skip to content

fix(infra): retry R2 with fallback Cloudflare token - #127

Merged
EagleFox31 merged 2 commits into
mainfrom
fix/r2-token-fallback
Oct 9, 2026
Merged

EagleFox31 merged 2 commits into
mainfrom
fix/r2-token-fallback

Conversation

@EagleFox31

Copy link
Copy Markdown
Contributor

The first Commerce Factory R2 retry reached Cloudflare correctly but the preferred dedicated Pages/D1 token did not have Workers R2 Storage Edit.

This brings R2 in line with the existing Hyperdrive token strategy:

  • try the dedicated resource token first;
  • on 401/403 only, retry with CLOUDFLARE_API_TOKEN when it is distinct;
  • keep all other errors fail-closed;
  • never expose either token.

Commerce Factory infrastructure run #9 can be retried after this lands.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
appfactory-api c27cd99 Commit Preview URL

Branch Preview URL
Oct 09 2026, 10:53 AM

@EagleFox31
EagleFox31 merged commit af0d5d1 into main Oct 9, 2026
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.

1 participant