Give feedback as an early user and get the docs plus a full website free. Code FRIEND: valid on one-time purchases only.

Deploy Your Astro Site

Astro builds to fast, static HTML by default, so it runs on virtually any host. Pick a platform below for a step-by-step guide, or use the shared build settings to deploy anywhere.

Pre-Deployment Checklist

Before deploying, make sure you've configured the following.

  1. 1

    Site URLs

    Update in:

    • astro.config.mjs, site property
    • src/data/client.ts, SITE.url
    • public/robots.txt, Sitemap URL
  2. 2

    Business Information

    Update src/data/client.ts:

    • Company name, address, phone
    • Email and opening hours
    • Social media links
  3. 3

    Favicons

    Replace default favicons in public/assets/favicons/

  4. 4

    Default Social Image

    Create public/assets/social.jpg (1200x600px recommended).

  5. 5

    Decap CMS Configuration

    Update public/admin/config.yml:

    • Repository name
    • Site URL
    • DecapBridge settings
  6. 6

    Test JSON-LD and Social Sharing

    Validate before deploying.

    JSON-LD Validation

Static or server-rendered?

Astro is static by default. If you need server-rendered routes or API endpoints, add the platform's adapter, each guide covers the exact steps.

Static output

The default. Astro prerenders every page to HTML at build time, deploy the dist folder to any static host or CDN.

Server output (SSR)

Add an adapter with npx astro add netlify or vercel to enable on-demand rendering and serverless functions.