The new and improved CherokeeLessons.com using the Zola static site generator.
The zola version is pinned in ZOLA_VERSION (currently 0.22.1 — the latest
release compatible with the vendored Zulma theme).
./build.shdownloads the pinned zola release binary on first use (cached as./zola, gitignored), reports its version, and builds the site intopublic/. The branch decides the base URL:masterbuilds withhttps://cherokeelessons.org/; any other branch builds domain-neutral (--base-url /) so a preview hostname serves;SITE_BASE_URLoverrides both.
The site deploys through Workers Builds: a merge to master triggers a
build + npx wrangler deploy automatically; PR branches get preview builds
(inspect one with npx wrangler preview). The deploy unit is the assets-only
wrangler.jsonc manifest — no Worker script, no bindings — and wrangler is
pinned in package.json.
Before running the setup, confirm you have:
- A Cloudflare account with the
cherokeelessons.orgzone. Custom-domain attachment only works for a zone that lives on the same account as the Worker. Verify at the dashboard: the zone appears under Websites → and shows its nameservers as Cloudflare-assigned. - An account identity with the rights the procedure touches: Workers (create + configure the Worker) and DNS records on the zone. Nothing below provisions storage; the deploy unit is the assets-only manifest plus the site build.
- GitHub authorization for Workers Builds: the Workers Builds GitHub
App must be installed and granted access to this repository
(
CherokeeLanguage/CherokeeLessons). Verify at the dashboard: Workers & Pages → Settings → Builds (or the Worker's Settings → Build) shows the connected repository. If the App is connected to the org, confirm which repositories it can see before assuming the build will start. - A local clone of this repository (for the repo-side facts the dashboard asks for: the worker name, the build command, the production branch — all recorded here).
The steps are ordered: each names what it depends on and how to confirm it worked. Do not proceed past a step whose verification fails — the failure modes subsection below lists the common build failures.
- Connect the GitHub App to this repository.
Depends on: prerequisites (App installed with this repo in scope).
Do: dashboard → Workers & Pages → create/connect the build source,
authorizing the App for
CherokeeLanguage/CherokeeLessons. Verify: the dashboard's build source shows the repo; the initial build attempt appears in Deployments/Build history (it may fail here — that is fine, the next steps fix the configuration). - Create the Worker with the exact name
cherokeelessons-org. Depends on: step 1 (the build source must point at this repo). Do: name the Worker exactlycherokeelessons-org— the name is the link between the builds integration and the trackedwrangler.jsonc(name: "cherokeelessons-org"); a mismatch is a builds-fail condition. Verify: the Worker exists in the dashboard with that name, and its settings page exposes a Builds section (no build configured yet). - Configure the build: command
./build.sh, production branchmaster. Depends on: step 2. Do: set the build command to./build.sh(unset means no build runs and the Wrangler config is not consulted for it) and the production branch tomaster— not the builds defaultmain; this repo's branch of record ismaster. Verify: the settings read back exactly: build command./build.sh, production branchmaster. - Trigger and watch a production build.
Depends on: step 3.
Do: push to
master(or use the dashboard's retry) and open Deployments → Build history. The build log should show the pinned Zola download (ZOLA_VERSION), the./build.shrun (branch-aware base-url:masterbuildshttps://cherokeelessons.org/), and thenpx wrangler deployupload. Verify: the deployment shows success andnpx wrangler deployments(or the dashboard) lists the active deployment with the expected commit. - Attach the custom domains
cherokeelessons.organdwww.cherokeelessons.org. Depends on: step 4 (the Worker must exist with a successful deployment before domains attach). Do: dashboard → the Worker's Settings → Domains & Routes → add both custom domains; Cloudflare creates the zone records for you. Verify: DNS:https://cherokeelessons.org/serves the site (HTTP 200, Zola content).www.cherokeelessons.orgserved a 301 to the apex when last working (2026-11-11) but was NXDOMAIN on 2026-11-12 — confirm the record state after attachment rather than assuming either; attachment state may change (the stand-up ops sequence includes apex and www). - Confirm the end state.
Depends on: step 5.
Verify: the deployment is active for the production branch; merging a
PR to
masterproduces a new build + deploy without manual dashboard action; PR branches produce preview deployments (inspect one withnpx wrangler preview); the site serves at the apex.
The three common causes, by their symptom in Deployments → Build history:
- Worker-name mismatch — the builds integration cannot find a Worker
matching the
wrangler.jsoncname. Symptom: the build fails at/deploy stage complaining the Worker or project does not exist. Fix: make the dashboard Worker name exactlycherokeelessons-org(step 2). - No build command configured — with the build command unset, no build
runs and the Wrangler config is not consulted for one; deploys then ship
nothing. Symptom: an empty/failed deploy with no Zola output in the log.
Fix: set the build command to
./build.sh(step 3). - Wrong production branch — the builds default is
main; pushes tomasterproduce nothing until the production branch is set tomaster(step 3). Symptom: merges tomasterproduce no deployment at all.
./build.shdownloads the pinned zola release binary on first use (cached as./zola, gitignored), reports its version, and builds intopublic/. Branch decides the base URL:masterbuildshttps://cherokeelessons.org/; any other branch builds domain-neutral (--base-url /) so a preview hostname serves;SITE_BASE_URLoverrides both. Servepublic/with any static server (ornpx wrangler preview, which exercises the actual deploy unit, the assets-onlywrangler.jsonc) and check the rendered site before pushing.
postWeight=$(("$(date +%s)" / 10 * 10)) postDate="$(TZ=UTC date -u --iso-8601=seconds|cut -f 1 -d '+')Z" echo "post weight: $postWeight" echo "post date: $postDate"
