The project builds to a static site in dist/. Config files for three hosts are included, so each one picks up
the build command and output folder on its own: push the project to GitHub, GitLab or Bitbucket and import it.
| Host | File | Settings it provides |
|---|---|---|
| Vercel | vercel.json |
Astro preset, pnpm install, pnpm build, output dist, asset caching |
| Netlify | netlify.toml |
pnpm build, publish dist, Node 22, asset caching |
| Cloudflare | wrangler.jsonc |
Workers static assets from dist, pnpm build, the custom 404 page |
.node-versionpins Node 22 for hosts that read it, andpublic/_headerssets long caching for the hashed files in/_astro/(used by Cloudflare and Netlify).- Cloudflare from the command line:
pnpm dlx wrangler deploybuilds and uploads in one step. Changenameinwrangler.jsoncto your project name first. - Before going live, set
site.urlinsrc/config/config.jsonto your real domain.