The pages are built ahead of time, but 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.
The site’s own settings are read when it builds, so build again after changing one, such as signIn.action, whose address goes into the Content Security Policy.
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). Set signIn.action to your app’s sign-in address, or turn sign-in off with signIn.show: false. Replace email in site.config.ts, and what the demo makes up: the product, its customers, quotes, figures and prices.