Skip to content

Deployment

Ready to build and deploy your Astro site? Follow one of our guides to different deployment services or read below for general guidance about deploying an Astro site.

Deployment Guides

Building Your Site Locally

Many hosts like Netlify and Vercel will build your site for you and then publish that build output to the web. But, some sites will require you to build locally and then run a deploy command or upload your build output.

You may also wish to build locally to preview your site, or to catch any potential errors and warnings in your own environment.

Run the command npm run build to build your Astro site and npm run preview to see the build.

Adding an Adapter for On-demand Rendering