Installation & Setup
Requirements, first-run configuration and the handful of values worth changing straight away.
Updated: September 2026·License: Commercial & Personal
Requirements
node -v.astro filesFirst run
bash
npm install
npm run devChange these first
Before you get far into customising, set the values that appear across the whole site:
1. Site URL — in astro.config.mjs, set site to your real domain. Canonical URLs, the sitemap and the RSS feed are all derived from it.
src/layouts/.
3. Favicon — replace the files in public/.js
// astro.config.mjs
import { defineConfig } from 'astro/config';
export default defineConfig({
site: 'https://your-domain.com',
});Leaving site at its placeholder value is the single most common setup mistake. It produces a sitemap and feed full of the wrong domain.
Explore production-ready themes
Hand-built Astro themes — SaaS, storefront, portfolio, and dashboard.