Skip to content
DocsFor version 1.1.x

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.

  1. The Worker’s settings: copy wrangler.example.jsonc to wrangler.jsonc and set its name (it becomes the free address, name.your-account.workers.dev). The rest can stay: the site is served from dist/, and the Worker runs the functions under /api/.
  2. Sign in and deploy: npx wrangler login once, then npm run build && npx wrangler deploy. The build log should show search index written: the search index is part of dist/.
  3. Deploy on every change (Workers Builds): connect the GitHub repository to your Worker’s builds (Cloudflare’s help), with build command npm run build and deploy command npx 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 variable NODE_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 in wrangler.jsonc, so each pull request shows Build Failed. wrangler.example.jsonc has "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 doctor says so too.
  4. The server features’ secrets: npx wrangler secret put NAME for each, as the submission pipeline and the sponsorship checkout list them.
  5. Your domain: connect it to the Worker as a custom domain (Cloudflare’s help), or with the commented-out routes line in wrangler.jsonc. Then set address in src/config/settings/site.json (Settings → Your site in the editor) to it: the canonical addresses, the sitemap, share images and robots.txt depend on it.
  6. Check the live site: npm run doctor -- --live checks the address, the pages and the functions. By hand: /robots.txt and /sitemap-index.xml load, 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 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 what npm run setup sets up. Cloudflare Workers with Workers Builds: a deploy hook for main in 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_TOKEN with the “Edit Cloudflare Workers” permission, and CLOUDFLARE_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 runs wrangler deploy. It needs a wrangler.jsonc: copy wrangler.example.jsonc to wrangler.jsonc and set its name and compatibility_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.

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:

  1. 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 protect main: 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.

  2. 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:

  1. 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.
  2. Settings → Secrets and variables → Actions: add the daily rebuild’s secret (DEPLOY_HOOK_URL, or CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID; see “The daily rebuild” above).
  3. Actions tab: run each workflow once by hand (Run workflow) to check it works.

These docs describe SixtyList 1.1.x.