Storage & CDN
Cloudflare R2 integration
S3-compatible object storage, zero egress fees.
What Lucid will wire up
- Environment variables added to
.env.example:R2_ACCOUNT_ID, R2_ACCESS_KEY_ID, R2_SECRET_ACCESS_KEY, R2_BUCKET. - Server helper generated at
src/lib/cloudflare-r2.tswith a typed client factory + error boundaries. - Connected-account card placed in the app’s
/settingspage so users can rotate keys without leaving the app.
Before you generate
- Create an account at www.cloudflare.com.
- Generate the API key(s) above from the vendor’s dashboard. Lucid only ever reads these values — we never persist them on our side.
- Paste them into the
.env.localfile in your generated project before runningpnpm dev.
Full guide coming soon
We’re writing a hand-authored guide for every available integration. This page is generated from the catalog so the basics are accurate; the vendor-specific walkthrough lands as soon as we finish documenting each one.