Full walkthrough being written.
When to pick over S3
- Bandwidth-heavy apps where S3 egress fees are significant.
- You’re already on Cloudflare for CDN.
- API parity with S3 (use the same SDKs).
Setup
R2_ACCOUNT_ID, R2_ACCESS_KEY_ID, R2_SECRET_ACCESS_KEY, R2_BUCKET in vly secrets. Use AWS S3 SDK with R2’s endpoint.
Related
AWS S3
The standard.
Convex file storage
Built-in.
UploadThing
Simpler alternative.
