Before launch
npm run doctor checks every switched-on feature and says exactly what’s missing and how to fix it: secrets on the host (by name, never value), Turnstile and the rate-limit store, the security policy against what your pages load, the header-rule limit, the form service, and whether your host runs the features you’ve turned on. On npm run dev, the same checks are at /_setup, and a small note on every page links there when one is a problem. The build prints the same warnings.
- GitHub: Allow GitHub Actions to create and approve pull requests is on, and the daily rebuild’s secret is set (“GitHub settings for the scheduled workflows” above).
- The repository is private (recommended), and your host’s GitHub app can read it.
- With the online checkout on (
advertise.checkout.provider: "stripe"):STRIPE_SECRET_KEYandSTRIPE_WEBHOOK_SECRETare live ones, the webhook endpoint listens to the six events, the refund terms are yours, and the restricted key has its four permissions (Set up your site → Sponsorship payments checks them, signed in), and a test purchase arrived as a pull request and an email. - With the CMS on:
/admin/loads and you can sign in; your editors have the narrowest repository role that works; the sign-in app’s redirect URIs (GitHub’s Identifying and authorizing users) includehttps://<your site>/api/cms/callbackfor every address you sign in on, your own domain included (if you use GitHub sign-in);npm run cms:e2epassed against your test repository. - With the submission pipeline on: it writes as a GitHub App (or a machine account), never as you;
mainis protected by the ruleset with one approval and only the admin role on the bypass list (public repositories, or a paid plan for a private one); the key’s next rotation (every few months) is in your calendar; and one test submission has arrived as a pull request and an email (the submission pipeline).
THEME_CATALOG.md and the theme’s pre-launch checklist cover the rest (favicon, social image, contrast with the new colours, Lighthouse). The QA scripts to run against npm run preview:
node scripts/qa/stage.cjs "$PWD" http://localhost:4321 screenshots/stage # every page: headings, alt text, axe, overflownode scripts/qa/interact.cjs "$PWD" http://localhost:4321 # navigation, forms, every internal linknode scripts/qa/directory.cjs "$PWD" http://localhost:4321 /listings # filter bar and search suggestionsnode scripts/qa/search.cjs "$PWD" http://localhost:4321 # the search pagenode scripts/qa/forms.cjs "$PWD" http://localhost:4321 # the submit formnode scripts/qa/widths.cjs "$PWD" http://localhost:4321 # layout at 768node scripts/qa/seo.cjs "$PWD" # titles, descriptions, canonicals, JSON-LD, sitemap