R2

  • [Tutorial] Build a Free Image Hosting System for Hugo with Cloudflare R2 and Workers

    · 4 min read

    Preface: Why Use Cloudflare R2 for Hugo Image Hosting? When running a static site built with Hugo, image management is always a hot topic. The traditional approach is to dump image files directly into the project’s static/ directory and commit them to Git version control along with the code. However, as the number of images grows, this method can cause your Git repository to become ridiculously bloated. This not only slows down git clone and pull operations but also makes backups and management a real headache.