Deployment
This is a static site - it builds to plain HTML, CSS, and JS. Deploy it anywhere.
Vercel
terminal
npm i -g vercel
vercelVercel auto-detects Astro and handles the build. Connect your Git repo for automatic deploys on push.
Cloudflare Pages
terminal
npm i -g wrangler
wrangler pages deploy distBuild command
Set the build command to npm run build and output directory to dist in your Pages project settings.
Static Hosting
Any static file server works. Just point it at the dist/ folder:
nginx.conf
server {
listen 80;
server_name docs.example.com;
root /var/www/docs;
index index.html;
}