Astro · Islands, endpoints and deployment

Configure the site

Set the site URL, which is needed for the sitemap and absolute URLs.

// astro.config.mjs
import { defineConfig } from "astro/config";

export default defineConfig({
  site: "https://www.example.com",
});

Official Astro documentation

More islands, endpoints and deployment commands

All islands, endpoints and deployment commands · Astro cheatsheet

Was this page helpful?