Photo of DeepakNess DeepakNess

Serving all blog images via Cloudflare R2

I was using more than 65 GB of bandwidth each month on Netlify, but I'm not worried about it anymore. I am now hosting all my blog images on Cloudflare R2, and the egress is completely free so no matter how much is traffic increases now, it's Cloudflare's problem now.

DeepakNess blog monthly bandwidth chart from Netlify

And this is my current workflow:

I created a script that automatically optimizes and converts all new images to WebP, creates a og.jpeg, and then pushes everything to Cloudflare R2 – all when I just run the npm run ready command in my terminal.

A few days later, I will write a detailed blog post about it.

Webmentions

What’s this?