Skip to content

fix(site): own the getghostcrab.com deploy in CI + bind the custom domain - #77

Merged
stevenfackley merged 1 commit into
mainfrom
fix/site-deploy
Aug 5, 2026
Merged

fix(site): own the getghostcrab.com deploy in CI + bind the custom domain#77
stevenfackley merged 1 commit into
mainfrom
fix/site-deploy

Conversation

@stevenfackley

Copy link
Copy Markdown
Owner

Fixes the dead site: getghostcrab.com has served HTTP 530 since launch. Diagnosis (2026-08-05 investigation):

  1. Workers Builds never went green — every deploy attempt on main since 2026-07 failed, including PR ci: add root build entrypoint for Cloudflare site deploy #68's wrangler-config fix commit (afd55e2). The site and root build shim build clean locally at the failing SHA, so the residual failure is in Cloudflare's build environment (logs are dashboard-only).
  2. No custom-domain bindingwrangler.jsonc had no routes, so even a green deploy only served workers.dev; the zone record for getghostcrab.com pointed at nothing (hence 530, not 404).

This PR:

  • adds routes: [{ pattern: "getghostcrab.com", custom_domain: true }] — wrangler provisions the DNS record on deploy;
  • adds site-deploy.yml: builds site/ on PRs (visible red check — the lesson from the two "stray Cloudflare check" incidents) and deploys via wrangler@4 on main push / dispatch.

Two one-time actions needed from you:

  1. Add repo secret CLOUDFLARE_API_TOKEN ("Edit Cloudflare Workers" token template) — until then the deploy step fails with auth error. Account ID is baked in (not a secret).
  2. After the first green deploy, disconnect the Workers Builds Git integration in the CF dashboard so the two deploy paths don't race. If the old DNS record conflicts with the custom-domain attach, delete the getghostcrab.com record in the zone first.

Play listing is unaffected (uses the steveackley.org placeholder); once this is live the hardcoded getghostcrab.com/privacy link in the iOS Settings screen resolves too.

🤖 Generated with Claude Code

https://claude.ai/code/session_0174S8DPK4RKqRvd34iBVHHi

…main

Two fixes for the dead site (HTTP 530 since launch):

1. wrangler.jsonc gains a routes entry with custom_domain — without it
   the worker only ever served workers.dev; the zone record for
   getghostcrab.com pointed at nothing, hence 530 even if deploys
   worked.

2. New site-deploy workflow builds site/ and runs wrangler deploy from
   CI. Cloudflare's Git-integrated Workers Builds NEVER produced a
   green deploy (every run since 2026-07 failed, PR #68's fix commit
   included; logs are dashboard-only). Deploying from Actions makes a
   dead deploy a visible red check in-repo — the lesson this site has
   now taught twice.

Needs repo secret CLOUDFLARE_API_TOKEN (Edit Workers template) before
the deploy step can run; PR runs build-only.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 5, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
ghostcrab a5de859 Commit Preview URL

Branch Preview URL
Aug 05 2026, 02:46 PM

@stevenfackley
stevenfackley merged commit fceddf7 into main Aug 5, 2026
10 checks passed
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