Cloudflare R2 Setup

Set up Cloudflare R2 object storage for a Vercel / Next.js app, or migrate off Vercel Blob, the de-risked way — proven write-toggle + host-routed-reads architecture plus the full pitfall list (wrangler can't mint S3 keys, Vercel CLI env corruption, next/image + CSP blocking R2 images, custom-domain CDN caching 404s, private-bucket PII reads, sharp/test gotchas). Use when the user says "use R2", "Cloudflare R2", "migrate off Vercel Blob", "object storage for Vercel", "S3-compatible storage", "image storage that works in mainland China", or sets up an R2 bucket for a server app.

xingfanxia Updated 5 repo stars

File contents

xingfanxia/ax-skills commit c09c37b8f3

Frequently asked questions

npx get-skill add xingfanxia/cloudflare-r2-setup