Skip to main content
Sarde
On this page

Deploying

Build a production site and pick a guide to deploy it to GitHub Pages, Netlify, Cloudflare Pages, Vercel, or any static host

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:

Text
Built 9 pages in 320 ms
Output: /path/to/my-site/dist

The 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 with sarde 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 with sarde deploy.

The Deployment section compares the deployment methods and explains where deploy tokens go.

Edit this page

Last updated: