5.1.6
Deploy
Build Groundcrew as a static site and deploy it with Cloudflare Workers Builds, or run the EmDash server on a Node host.
What the build makes
pnpm build
With Markdown, the build is a static site. Astro writes it to dist/, with zips.json for the ZIP check (while it is on) and the site search index in dist/pagefind/. There is no server code. The forms post to your form service, so they need no server either.
The build runs the setup check as it builds the pages. If a setting or a link is wrong, or a placeholder is left, it stops and lists the problems. See The setup check.
Set your address
The feed, the sitemap, robots.txt, llms.txt, the share images and the structured data need your site’s public address. Set the SITE_URL environment variable, for example SITE_URL=https://<your-domain> pnpm build, or edit the site line in astro.config.mjs.
Until you set it, a static build’s links point at https://example.com. A build with no address does not stop for that alone, so check it before you launch. See Search and AI.
SITE_URL also tells the setup check that the site is live. With a real address, the build stops on every placeholder address and [FILL IN: …] marker, even with sampleContent on. See What a form on a placeholder address does.
Tell Cloudflare what to serve
The repo has no Cloudflare config. Add a file wrangler.jsonc at the root of your repo:
{
"name": "my-site",
"compatibility_date": "2026-10-01",
"assets": { "directory": "./dist", "not_found_handling": "404-page" }
}
name must match the name of your Worker in the Cloudflare dashboard. If it does not, the build fails. not_found_handling serves the site’s own 404 page.
Connect the repo
- Push your own repo to GitHub. See Install.
- In the Cloudflare dashboard, create a Worker from your Git repository (Workers Builds).
- Set the build command to
pnpm build. - Add
SITE_URLas a build variable, set to your site’s address.
Cloudflare then builds the site and serves dist/.
EmDash
With the EmDash source, the build is a server app for Node (@astrojs/node). It keeps its data in a SQLite file (data.db) and its uploads in uploads/. It does not run on Cloudflare Workers as it ships, so the steps above do not apply. You need a host that runs Node and keeps those files between restarts.
- Load the content once with
pnpm seed:emdash. See Switch to EmDash. - Build it, with your address:
SITE_URL=https://<your-domain> CONTENT_SOURCE=emdash pnpm build. - Run it, with your address:
SITE_URL=https://<your-domain> pnpm start, with your own domain in place of<your-domain>.
On a server, SITE_URL at run time wins over the address the build used. A server with no address does not use the placeholder. It uses the address it sees for each request, and its log has one line asking for SITE_URL.
A production server runs no setup check. So check your content first with pnpm dev, then try each form. See On an EmDash server.