Deploy

Aplos builds plain static assets (HTML, JS, CSS) to dist/. There's no server runtime to operate — pick any static host you prefer.

Recommended workflow

  1. Mark pages that should be pre-rendered with "use static" (see Static rendering).
  2. Build with bun run build --static.
  3. Upload dist/ to your host.

Guides

  • Kemeter — the platform Aplos is built for. Git push to deploy, with the build cache persisted across deploys out of the box.
  • GitHub Pages — free, integrates with GitHub Actions, used by aplos.alpacode.io itself.
  • Other static hosts — Netlify, Vercel, Cloudflare Pages, nginx, S3 + CloudFront.

Choosing a host

HostCostSPA fallbackBest for
KemeterFree tierBuilt-inThe platform Aplos is built for, with git push to deploy and a persistent build cache
GitHub PagesFreeManual (404.html copy)Open source, docs, marketing
NetlifyFree tierBuilt-inQuick deploys, branch previews
VercelFree tierBuilt-inSame
Cloudflare PagesFreeBuilt-inGlobal edge, fast worldwide
S3 + CloudFrontPay per useConfigurableEnterprise, custom CDN setup
Self-hosted nginxServer costConfigurableFull control

Kemeter is the platform Aplos is built for, so you get git push to deploy with the build cache persisted out of the box. It's the smoothest path if you don't have strong preferences, and if you're already on GitHub, GitHub Pages is the simplest alternative.

Faster CI builds

Aplos caches build artifacts on disk. By default the cache lives in node_modules/.cache/aplos/, but set XDG_CACHE_HOME to a persisted directory and the cache survives across builds — every deploy after the first becomes a warm build. See Build cache for details.