Sarde builds a static site that any static host can serve. Build it once, then follow the guide for your host.
Build for production
Run the build from the project folder. If the dev server is running there, stop it first, because both commands write to dist/.
Terminal window
sarde build→ The output ends with:
Built 9 pages in 320 ms Output: /path/to/my-site/distThe dist/ directory contains the complete site: HTML pages, CSS, JavaScript, images, feeds, sitemap, and search index. Drafts, scheduled pages, and expired pages are left out.
Choose a host
Each guide covers the deployment methods its host supports:
- GitHub Pages: publish with GitHub Actions, or push
dist/to a branch withsarde deploy. - Netlify: build from Git, deploy with
sarde deploy, or use the Netlify CLI. - Cloudflare Pages: build from Git, deploy with
sarde deploy, or use Wrangler. - Vercel: build from Git, deploy with
sarde deploy, or use the Vercel CLI. - Other hosts: upload
dist/anywhere, or run your own command withsarde deploy.
The Deployment section compares the deployment methods and explains where deploy tokens go.