Skip to content

Search is only available in production builds. Try building and previewing the site to test it out locally.

Deployment

Astro is a static site generator that makes it easy to build high-performance websites. Its approach is based on the “0 KB architecture,” which aims to minimize the amount of JavaScript sent to the client by default.

To achieve this, Astro uses a hybrid approach that combines static generation with server-side rendering (SSR) in some cases. Astro also lets you integrate JavaScript frameworks such as React, Vue, or Svelte through “Server Islands,” which hydrate only the parts of the page that need it.

Depending on whether you need a static or dynamic deployment, configure the corresponding build command:

In this mode, Astro generates a static site. You only need a build step and then upload the static files to a host.

Terminal window
# Build for production
pnpm -F @frame/astro build
# Serve the built content in /dist on any static host: GitHub Pages, Vercel, Cloudflare, etc.

For dynamic deployments, Astro relies on server-side rendering (SSR). In this mode, Astro generates some or all pages dynamically at runtime. That requires a server that can serve pages on demand.

The exact approach depends on where you deploy. Learn more in this guide.