Skip to content

Serve landnav.app 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 landnav.app 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 landnav-website, no script, serves public/, 404 page, custom domain landnav.app. 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: landnav-website check run. .mise.toml, AGENTS.md, README.md and scripts/deploy-guard.sh lose their Pages wording. .wrangler/ is gitignored.
  • New static/_headers: the Worker sent .well-known/apple-app-site-association (it claims /share/* for onNav Marine) with no Content-Type, where Pages sent application/octet-stream. It now goes out as application/json, the type Apple documents. Checked on workers.dev and on this branch's Preview.

Checked

  • mise run check: cspell 25 files, markdownlint passed, lychee 77 OK.
  • First deploy from the Mac, no route, at landnav-website.gerry-shaw.workers.dev: all 21 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-landnav-website.gerry-shaw.workers.dev serves the same 21 files byte for byte, with X-Robots-Tag: noindex.

Rollback: DNS and Pages before the switch

Zone landnav.app DNS records:

4eddf26f6f9939a0db051a39a1e161b2 CNAME landnav.app landnav-website.pages.dev proxied=true
0332f89e68de25a91bd3a7c1b3d666e1 CNAME v2.landnav.app landnav-v2.pages.dev proxied=true
578da5d131b3ee323d9a613588b9921b CNAME www.landnav.app landnav.app proxied=true
30dcbf509dfe1fac6e886dcf2437a10b AAAA maps.landnav.app 100:: proxied=true

Pages project landnav-website source.config:

{
  "owner": "gshaw",
  "owner_id": "33321",
  "repo_name": "LandNav.website",
  "repo_id": "642588368",
  "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 landnav.app from the Pages project, delete only the root CNAME (id 4eddf26f6f9939a0db051a39a1e161b2), 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 4224fdb into main Oct 25, 2026
3 checks passed
@gshaw
gshaw deleted the workers branch October 25, 2026 16:29
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