Documentation

Deployment

Build and deploy your Astro site to production.

Build the site

npm run build

The output goes to dist/.

Preview locally

npm run preview

Deploy to any host

You can deploy the dist folder to:

  • Vercel
  • Netlify
  • Cloudflare Pages
  • Any static hosting provider

Environment variables

If you add environment variables, document them in your README and configure them on your host.