Setup
Deployment is one click. You only need a Cloudflare account with R2 enabled — no local toolchain, no manual wrangler invocations.
Prerequisites
- A Cloudflare account
- R2 enabled on that account
Deploy
Click the button to deploy
version 1.0.1
to your Cloudflare account. Cloudflare forks the repository, provisions the Worker, and creates the R2 bucket for you.
Configure
After the initial deploy, open wrangler.jsonc in your forked repository and change the following variables to match your setup:
| Variable | What to change |
|---|---|
PROXY_ORIGINAL_URL | Your image origin — e.g. https://docs-cloudflare-cdn.ciannavei.dev/ |
STEPS_QUALITY | Allowed output quality values. Default: [10, 20, 30, 40, 50, 60, 70, 80, 90, 100] |
STEPS_SIZE | Allowed output widths and heights. Default: [320, 480, 720, 1080, 1920, 2560, 3840] |
Commit your changes — Cloudflare redeploys the worker automatically on every push.