Cloudflare Worker for returning branded error pages when an upstream request fails.
From this folder:
npx wrangler deployThat is the normal deploy flow for this project.
- The worker checks the upstream once and returns a safe fallback page on failure.
- It handles common statuses like 404, 502, 503, and 504.
- The main config is in
wrangler.tomland the worker code is insrc/worker.js.