The forms run on a server, so the site needs a host that runs one. The build picks its adapter from the host (integrations/deploy-target.mjs): Vercel, Netlify and Cloudflare are detected, and anything else gets Astro’s Node server. DEPLOY_TARGET (node, vercel, netlify or cloudflare) overrides it. Cloudflare needs its adapter first: pnpm add @astrojs/cloudflare.
At your host, set:
SITE_URL, your site’s address: the canonical links, the sitemap, the share images and the newsletter’s confirmation link use it;- the Resend settings from Forms.
Before you publish, turn off what’s for the theme’s demo: showcase in the settings, and docs unless you replace these pages with your product’s own. Change or turn off the announcement bar (announcement.show), and replace what the demo makes up: the product, its customers, quotes, figures and prices.