Deploy to Vercel

Forge sites build to static HTML with on-demand routes via the Vercel adapter. Connect the repo and every merge ships.

Forge sites use the Astro Vercel adapter. Most routes are prerendered to static HTML; a few opt into on-demand rendering for things that must be fresh.

Connect the repo

  1. Import the repository on Vercel.
  2. Vercel detects Astro automatically — no build settings needed.
  3. Every push to main ships to production; every PR gets a preview URL.

Static + on-demand in one project

// astro.config.mjs
export default defineConfig({
  output: "static",
  adapter: vercel(),
});
---
// src/pages/status.astro — opt this route into on-demand rendering
export const prerender = false;
---

Environment variables

Public values (site name, contact email) are validated by astro:env and inlined at build. Secrets (lead webhooks) are read on the server only. Set them in the Vercel dashboard under Settings → Environment Variables.