Deploy to Netlify
Netlify deploys an AeroLaunch theme in 2 minutes, same shape as Vercel and Cloudflare Pages. Pick Netlify specifically if you’re using Netlify Forms for your contact form (see Contact form → Netlify) — that integration only works on Netlify hosting.
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 push -u origin main -
Import on Netlify: app.netlify.com/start → select your provider → pick the repo.
-
Build settings — Netlify usually auto-detects Astro. If not:
Setting Value Base directory empty (root) Build command npm run buildPublish directory distNode version 20 (set via env) -
The bundled
netlify.toml(in every theme) already sets this:netlify.toml [build]command = "npm run build"publish = "dist"[build.environment]NODE_VERSION = "20"If you delete that file, configure the settings in the Netlify dashboard.
-
Deploy. First build takes ~1–2 minutes.
Option B — Netlify CLI
Section titled “Option B — Netlify CLI”npm install -g netlify-clinetlify loginnpm run deploy:netlifyThe bundled script maps to:
npm run build && npx netlify deploy --prod --dir=distFirst run links the local folder to a new Netlify site; subsequent runs publish to the same site.
Netlify Forms (contact form)
Section titled “Netlify Forms (contact form)”If you set contactForm: { provider: "netlify" } in site.ts, the Contact section renders a form with data-netlify="true" and a hidden form-name input. Netlify’s build pipeline scans deploys for those attributes and registers the form automatically.
After the first deploy:
- Settings → Forms → you should see the form listed as “contact”.
- Notifications → Add notification → Email → enter your inbox.
- Submit the form once to test. Submissions appear in Forms → Submissions.
Spam protection
Section titled “Spam protection”Netlify’s free tier includes basic honeypot. To upgrade:
- Honeypot — add
<input name="bot-field" />andnetlify-honeypot="bot-field"to the form. Already wired in the bundled component. - reCAPTCHA v2 — enable in Settings → Forms → Spam filters.
Custom success page
Section titled “Custom success page”By default, after submitting the form Netlify redirects to a generic success page. To redirect to your own:
-
Create
src/pages/thanks.astro(or similar). -
In
Contact.astro, add a hidden input inside the<form>:<input type="hidden" name="success_url" value="/thanks/" />
…or use the action attribute on the form for a same-page redirect:
<form name="contact" method="POST" data-netlify="true" action="/thanks/">Custom domain
Section titled “Custom domain”- Project → Domain management → Add custom domain.
- Enter your domain (e.g.
aurora.dev). - Netlify gives you DNS records. Most apex domains use ALIAS / ANAME records that point to Netlify’s load balancer; subdomains use a CNAME.
- SSL is automatic.
See Custom domain for the deeper guide.
Common gotchas
Section titled “Common gotchas”What’s next
Section titled “What’s next”- Custom domain — point a real domain at this build.
- Contact form → Netlify — the contact-form integration that requires Netlify hosting.
- Cloudflare Pages — alternate host.