Deploy to Vercel
Vercel is a great fit for Astro sites — they were one of the first hosts to ship a first-class Astro adapter, and the build defaults Just Work.
Option A — Connect a Git repository
Section titled “Option A — Connect a Git repository”-
Push your theme to GitHub, GitLab, or Bitbucket.
Terminal window git initgit add .git commit -m "Initial commit"git branch -M maingit remote add origin https://github.com/you/your-site.gitgit push -u origin main -
Import the repo on Vercel: vercel.com/new → select your repo.
-
Build settings — Vercel auto-detects Astro. You shouldn’t need to change anything, but if it asks:
Setting Value Framework Preset Astro Build Command npm run buildOutput Directory distInstall Command npm installNode Version 20 (Vercel default) -
Deploy.
The first build takes 60–90 seconds. Every subsequent git push to main triggers an automatic redeploy; pushes to other branches generate preview URLs.
Option B — Vercel CLI
Section titled “Option B — Vercel CLI”The fastest way to deploy a one-off demo without setting up Git.
-
Install the CLI:
Terminal window npm install -g vercel -
Deploy from the project root:
Terminal window npm run deploy:vercelThat maps to
npx vercel --prodin the bundledpackage.json. First run asks a few questions (project name, scope); subsequent runs go straight to deploy.On first deploy you’ll see something like:
✓ Production: https://my-site-abc.vercel.app [2s]
Custom domain
Section titled “Custom domain”- On the project page → Settings → Domains → Add.
- Enter your domain (e.g.
aurora.dev). - Vercel gives you a DNS record to add at your registrar (A record for an apex domain, CNAME for a subdomain).
- SSL is automatic — Let’s Encrypt within a few minutes.
See Custom domain for the full walkthrough.
Edge functions & ISR
Section titled “Edge functions & ISR”Every AeroLaunch theme builds to static output (output: 'static' in astro.config.mjs). That means no Vercel functions, no edge runtime, no ISR — pure static files. If you want to enable server-side features (e.g. an API route), you’d need to:
- Install Vercel’s Astro adapter:
npm install @astrojs/vercel - Update
astro.config.mjsto use the adapter and setoutput: 'server'. - Add server routes as
.tsfiles insrc/pages/api/.
This is intentionally out of scope for the bundled themes — they’re designed to deploy anywhere static. Add the adapter only if you have a clear need.
Common gotchas
Section titled “Common gotchas”What’s next
Section titled “What’s next”- Custom domain — point a real domain at this deploy.
- Cloudflare Pages — alternate static host.
- Netlify — required if you use Netlify Forms.