Needs the Pro plan.
1. Create an R2 key
- In Cloudflare, open R2 Object Storage and click Manage API Tokens.

- Click Create Account API token.

- Choose Object Read & Write, then Apply to specific buckets only and pick your bucket.

- Create the token, then copy the Access Key ID, Secret Access Key and the S3 endpoint. The secret is only shown once.
2. Connect the bucket
- In Dreep, open your project, go to Settings > Storage and click Configure Bucket.

- Choose Cloudflare R2 and click Continue.

- Paste the bucket name, keys and S3 endpoint. Leave the region as
auto.

- Click Review & Test, then connect the bucket. When it’s done, you’ll see Connected.

3. Use your images
Copy the Images URL from your bucket details, then add a file’s path from your bucket:Options
See Image Transformations for everything else.
Move your image URLs
Your Cloudflare Images links work on Dreep with the same options and the same file paths. Only the start of the URL changes. On Dreep’s domain, swap the domain for your Images URL:/cdn-cgi/image/ for /_img/. Cloudflare reserves /cdn-cgi/ on every domain it serves, so that path never reaches Dreep:
https://images.example.com/products/123/photo.jpg, need no change on your own domain.
In your code
If your app builds image URLs, change them in one place. The JavaScript SDK hastoDreepUrl() built in:
In your database
If you store full image URLs, update them in place. Back up the table first.PostgreSQL / MySQL
REPLACE and only swap /cdn-cgi/image/ for /_img/. The same goes for links on R2’s development URL (https://pub-….r2.dev): put that as the old base.
Optional: your own domain
- If the domain is connected to your R2 bucket, remove it there first: your bucket > Settings > Custom Domains.
- In Dreep, go to Settings > Custom Domains and add the domain, such as
images.example.com. - Add the DNS record Dreep shows you.
Optional: CORS for browser uploads
Only needed if your website uploads files from the browser straight to your bucket. Serving and resizing images works without it.- In Cloudflare, open your bucket and go to Settings. Under CORS Policy, click Add.

- Paste this policy, with your website’s address in
AllowedOrigins, then click Save.

- Back in Dreep, click Verify Again in the setup checklist. S3 CORS Configuration shows Configured.