Astro deploy guide
Astro outputs static files to dist/ by default; add an adapter for on-demand rendering.
- Build
- npm run build
- Output
- dist/
- Official docs
- Astro Deploy guides · On-demand rendering adapters
How to deploy
- Static: npm run build and upload dist/.
- GitHub Pages: use the official Actions workflow; set site and base.
- SSR: npx astro add node (or cloudflare / vercel / netlify), then build.
Per platform
| Platform | Notes |
|---|---|
| Cloudflare Pages / Netlify / Vercel | Build npm run build, output dist. |
| GitHub Pages | Use our GitHub Pages workflow with output dist. |
Notes
- Set base when serving from a project sub-path on GitHub Pages.