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: announcement.show, docs and showcase in the settings, and check what the demo makes up.