This repo holds the two websites for TachyonCMS:
- tachyoncms.com, at the repo root: an Astro static site, plus the email signup in
functions/(Cloudflare Pages Functions) with its logic inserver/. - docs.tachyoncms.com, in
docs/: an Astro Starlight site, an npm workspace of this repo.
To work on either, see CONTRIBUTING.md. It covers setup and every check CI runs.
- The site deploys through Cloudflare Pages' Git integration: Pages builds every push, and
maingoes to production..github/workflows/rebuild-site.ymlcalls a Pages deploy hook (thePAGES_DEPLOY_HOOKsecret) once a day, so a blog post dated for today goes live. - The docs deploy to Cloudflare Workers static assets from
.github/workflows/deploy-docs.yml, on every push tomainand once a day. It needs theCLOUDFLARE_API_TOKENandCLOUDFLARE_ACCOUNT_IDsecrets.
Security headers for both live in headers.base. Each build adds a content security policy hashed from its own output (scripts/csp.mjs).
| Name | Kind | What it is |
|---|---|---|
PUBLIC_TURNSTILE_SITE_KEY |
build variable | Turnstile widget site key |
GITHUB_TOKEN |
secret, optional | Read-only GitHub token. The build reads the star count, releases and contributors from GitHub's API, and this lifts the anonymous rate limit. If a call fails, the header shows no star count and the pages use the snapshots in src/data. |
TURNSTILE_SECRET_KEY |
secret | Turnstile secret key |
RESEND_API_KEY |
secret | Resend key with sending and contacts access |
RESEND_SEGMENT_ID |
secret | Segment confirmed addresses join |
SIGNING_SECRET |
secret | Long random string that signs confirmation links |
MAIL_FROM |
variable | Sender, such as TachyonCMS <launch@tachyoncms.com> |
The code is under the MIT License. The TachyonCMS name and logo aren't: the trademark page says how you can use them.