Deploying
SixtyList is made for Cloudflare Workers: the free plan allows commercial use, and every feature
runs there (the static site, the submission pipeline, the sponsorship checkout and the editor’s
sign-in). Put your site online does all of this with
npm run setup; these are the same steps by hand.
Cloudflare Workers
Section titled “Cloudflare Workers”- The Worker’s settings: copy
wrangler.example.jsonctowrangler.jsoncand set itsname(it becomes the free address,name.your-account.workers.dev). The rest can stay: the site is served fromdist/, and the Worker runs the functions under/api/. - Sign in and deploy:
npx wrangler loginonce, thennpm run build && npx wrangler deploy. The build log should showsearch index written: the search index is part ofdist/. - Deploy on every change (Workers Builds): connect the GitHub repository to your Worker’s builds
(Cloudflare’s help), with build command
npm run buildand deploy commandnpx wrangler deploy. The project needs Node 22.23.4 or later: if a build’s log says its Node isn’t supported, add the build variableNODE_VERSION=22(in the same Builds settings), and build again.- Builds of other branches (a submission’s, a paid booking’s: Cloudflare’s Worker Previews) end
with
npx wrangler preview, which fails the build without a"previews"block inwrangler.jsonc, so each pull request shows Build Failed.wrangler.example.jsonchas"previews": {}(empty: a preview gets no bindings or variables of its own); in a copy made before 1.1.0, add the line"previews": {},under"preview_urls".npm run doctorsays so too.
- Builds of other branches (a submission’s, a paid booking’s: Cloudflare’s Worker Previews) end
with
- The server features’ secrets:
npx wrangler secret put NAMEfor each, as the submission pipeline and the sponsorship checkout list them. - Your domain: connect it to the Worker as a custom domain
(Cloudflare’s help),
or with the commented-out
routesline inwrangler.jsonc. Then setaddressinsrc/config/settings/site.json(Settings → Your site in the editor) to it: the canonical addresses, the sitemap, share images androbots.txtdepend on it. - Check the live site:
npm run doctor -- --livechecks the address, the pages and the functions. By hand:/robots.txtand/sitemap-index.xmlload, a search returns results, both forms arrive, and a shared link previews correctly.
Other hosts: Hosting compares Cloudflare Workers and Pages, Netlify,
Render and GitHub Pages: what each runs, its plan limits (GitHub Pages rules out commercial use), and
how to deploy to it. Vercel keeps an adapter: it works on Vercel’s paid plans, but isn’t officially
supported or tested. Set yours as hosting.provider in directory.config.json, and npm run deploy
builds and deploys with the host’s own command.
The daily rebuild
Section titled “The daily rebuild”The site is static, so placements only start and end when it’s built again. .github/workflows/daily-rebuild.yml rebuilds it every day at 05:17 UTC (and on demand from the Actions tab: Daily rebuild → Run workflow). Give it one of these, as repository secrets (Settings → Secrets and variables → Actions):
- A deploy hook (
DEPLOY_HOOK_URL): the simplest, and whatnpm run setupsets up. Cloudflare Workers with Workers Builds: a deploy hook formainin the Worker’s build settings (Cloudflare’s help); Cloudflare Pages: Settings → Builds → Deploy hooks; Netlify: Build hooks; Vercel: Deploy Hooks. The workflow calls it and the host rebuilds. The address works like a password: keep it only in the secret. - Wrangler (
CLOUDFLARE_API_TOKENwith the “Edit Cloudflare Workers” permission, andCLOUDFLARE_ACCOUNT_ID), for Workers with static assets: the workflow builds the site, writes what’s showing and what ends soon into the run’s summary, and runswrangler deploy. It needs awrangler.jsonc: copywrangler.example.jsonctowrangler.jsoncand set itsnameandcompatibility_date.
With neither set, the workflow does nothing and says so in its run. GitHub pauses scheduled workflows in a repository with no activity for 60 days; a commit or a manual run starts it again.
Private repositories (recommended)
Section titled “Private repositories (recommended)”Keep the site’s repository private unless you have a reason to publish it:
- Not yet public: listings still in review, drafts and the link checker’s results.
- Business details: sponsorship records (dates, packages and owner-only notes in
src/content/directory/placements/). - Pull requests: the submission pipeline’s PRs, which hold listing data only, are visible to collaborators only.
- Licence: a public repository also publishes the starter’s source. Check the licence you bought it under before making one public.
Everything works in a private repository:
- The submission pipeline: its GitHub App (or machine account) is limited to the one repository, whatever its visibility, and the function works through the GitHub API as it does for a public one. When you connect your host (Cloudflare, Netlify or Vercel) to GitHub, give its GitHub app access to the private repository, or it can’t build.
- The daily rebuild and the link checker: they run on GitHub Actions as they would in a public repository. The link checker opens its pull request with the repository’s own token, which needs Allow GitHub Actions to create and approve pull requests (below). In an organisation’s repository, the organisation must allow it first (Organization settings → Actions → General).
Two differences on GitHub’s free plan:
-
Protecting
main: rulesets on a private repository need GitHub Pro, Team or Enterprise, so on the free plan the pipeline’s ruleset isn’t available. The pipeline’s own limits are then what protectmain: the GitHub App’s one repository, two permissions and hour-long tokens, and the key kept only in your host’s secrets, rotated every few months and revoked straight away if it might have been exposed. The pipeline’s step 1 has a table of what applies on each plan. If you want the ruleset as well, upgrade the account that owns the repository. -
Actions minutes: private repositories get a monthly allowance of GitHub Actions minutes (public ones don’t use it). At the time of writing that’s 2,000 minutes on GitHub Free and 3,000 on Pro and Team, on GitHub’s standard Linux runners. Each job is billed in whole minutes, rounded up. The scheduled workflows use roughly:
Workflow Each run A month Daily rebuild, deploy hook under a minute (billed as 1) about 30 minutes Daily rebuild, Wrangler 2–4 minutes (install, build, deploy) about 60–120 minutes Link check, weekly 1–3 minutes (about a minute per 200 listings, more when sites are slow) about 5–15 minutes That’s about 35–135 minutes a month in all, well under the free allowance. A directory with thousands of listings builds for longer, and so uses more with the Wrangler option. The workflows stop at 20 and 30 minutes, which caps the worst case. Builds your host runs from Git (Cloudflare, Netlify or Vercel) and the submission function don’t use Actions minutes. Runs you start by hand, and any other workflows you add, do. See your usage under Settings → Billing and plans (or the organisation’s billing page), and GitHub’s billing documentation for the current allowances.
GitHub settings for the scheduled workflows
Section titled “GitHub settings for the scheduled workflows”The two scheduled workflows need these in the repository on GitHub, once:
- Settings → Actions → General → Workflow permissions: tick Allow GitHub Actions to create and approve pull requests, then Save. The weekly link check (
.github/workflows/links-check.yml) opens its results as a pull request with the repository’s own token; without this setting the check runs but can’t open the pull request. - Settings → Secrets and variables → Actions: add the daily rebuild’s secret (
DEPLOY_HOOK_URL, orCLOUDFLARE_API_TOKENandCLOUDFLARE_ACCOUNT_ID; see “The daily rebuild” above). - Actions tab: run each workflow once by hand (Run workflow) to check it works.