Skip to content

Serve birdsnearme.com from a Worker, built by Workers Builds - #11

Merged
gshaw merged 1 commit into
mainfrom
workers
Oct 25, 2026
Merged

gshaw merged 1 commit into
mainfrom
workers

Conversation

@gshaw

@gshaw gshaw commented Oct 25, 2026

Copy link
Copy Markdown
Owner

Moves birdsnearme.com from Cloudflare Pages to a Worker with static assets, built by Workers Builds, as gshaw.ca #35 did. Same Hugo build, same files.

  • wrangler.jsonc: Worker birdsnearme-website, no script, serves public/, 404 page, custom domain birdsnearme.com. Production's workers.dev URL is off; branches get Preview URLs.
  • Workers Builds, connected through the API: main runs hugo then npx wrangler@4.143.1 deploy; other branches run wrangler preview. Both triggers set HUGO_VERSION=0.167.0.
  • scripts/pages-status.sh becomes scripts/build-status.sh, reading the Workers Builds: birdsnearme-website check run. .mise.toml, AGENTS.md, README.md and scripts/deploy-guard.sh lose their Pages wording. .wrangler/ is gitignored.
  • birdsnearme moves from an inline cspell ignore in AGENTS.md to cspell.config.yaml, now that wrangler.jsonc and the status script use it too.

Checked

  • mise run check: cspell 18 files, markdownlint passed, lychee 38 OK.
  • First deploy from the Mac, no route, at birdsnearme-website.gerry-shaw.workers.dev: all 12 files 200 with the local build's bytes, an unknown URL 404 with the site's page.
  • This branch's Workers Builds preview passed and https://workers-birdsnearme-website.gerry-shaw.workers.dev serves the same 12 files byte for byte, with X-Robots-Tag: noindex.

Rollback: DNS and Pages before the switch

Zone birdsnearme.com DNS records:

eae7b2a38cb93751b6b0862c76d26a7c CNAME birdsnearme.com birdsnearme-website.pages.dev proxied=true
7e235626f294c6b600706cce816be4cc CNAME v2.birdsnearme.com birdsnearme-v2.pages.dev proxied=true
5dd6e0dec19f492c4bb03f9f94c523be CNAME www.birdsnearme.com birdsnearme.com proxied=true
0f26a7b1ccaedfd68673cf333340a231 TXT birdsnearme.com "v=spf1 -all" proxied=false
bc17d060ed902d8c19365680d1d7df01 TXT _dmarc.birdsnearme.com "v=DMARC1; p=reject;" proxied=false

Pages project birdsnearme-website source.config:

{
  "owner": "gshaw",
  "owner_id": "33321",
  "repo_name": "BirdsNearMe.website",
  "repo_id": "644167516",
  "production_branch": "main",
  "pr_comments_enabled": true,
  "deployments_enabled": true,
  "production_deployments_enabled": true,
  "preview_deployment_setting": "all",
  "preview_branch_includes": [
    "*"
  ],
  "preview_branch_excludes": [],
  "path_includes": [
    "*"
  ],
  "path_excludes": []
}

At merge: pause the Pages builds (production_deployments_enabled: false, preview_deployment_setting: "none"), remove birdsnearme.com from the Pages project, delete only the root CNAME (id eae7b2a38cb93751b6b0862c76d26a7c), merge. The merge's build attaches the custom domain. Every other record stays. To roll back: put the CNAME and the Pages domain back, and restore the source.config above.

🤖 Generated with Claude Code

Home page on the branch Preview URL

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@gshaw
gshaw merged commit 8f8463b into main Oct 25, 2026
3 checks passed
@gshaw
gshaw deleted the workers branch October 25, 2026 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant