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",
});
More islands, endpoints and deployment commands
- Add an interactive component
- Read environment variables
- Create an API endpoint
- Render on the server
- Render a page on demand
All islands, endpoints and deployment commands · Astro cheatsheet