Cloudflare Pages sites rebuild only on Git push by default, but scheduled rebuilds are possible using a deploy hook — a secret URL that triggers a fresh build when POSTed to. Two approaches are compared: a GitHub Actions scheduled workflow (simple, one file in your repo, but subject to GitHub's best-effort timing and 60-day inactivity pause) and a Cloudflare Worker cron trigger (more reliable timing, no GitHub dependency, but requires a separate deployable project). Both ultimately do the same thing — POST to the deploy hook — so the choice comes down to where you want the scheduler to live. A UTC timezone gotcha is also highlighted.
Table of contents
The key piece: a deploy hookOption 1: a GitHub ActionOption 2: a Cloudflare Worker cronWhich one I’d pickOne gotcha: time zonesThat’s the whole pattern126 Impressions1 Comment