# Proxy for Cloudflare R2

This directory contains an example of a Cloudflare Workers proxy for making URLs for the repository browser a bit nicer. If you have it sit in front of your R2 bucket's public URL, it serves your index.html pages when users browse to the directory.

1. Create a new worker in the Cloudflare web ui
2. `npx wrangler deploy worker.js --name <insert your worker name here> --compatibility-date 2026-01-01`
3. In the Cloudflare web ui under "Worker Routes", list your new worker under the route <your.bucket.domain.here>/*
