Skip to content

Deploying Astro Sites

Sandbar works out of the box with Astro’s default static output.

No special configuration needed. Astro’s default output directory is dist/, which matches Sandbar’s default.

Terminal window
# Build your Astro site
npm run build
# Deploy to Sandbar
sandbar deploy

Set PUBLIC_* environment variables in your build environment. Sandbar does not run your build — set these in your CI workflow or local environment.

Starlight sites deploy identically to any Astro site. The output is static HTML.

Preview deploys work automatically. Each preview gets a unique URL that you can share with your team for review.

Terminal window
sandbar preview --label "docs-update"