AI Workshop: learn to build apps with AI →
Tips
Forms, headers, middleware, and troubleshooting.

Join the AI Workshop and learn to build real-world apps with AI. A hands-on, practical program to level up your skills.


Practical tips, troubleshooting guides, and solutions for common Astro challenges. From form handling to deployment, these tips will help you build better Astro sites.

In this section you’ll find solutions for headers, middleware, forms, deployment, and common issues.

Lessons in this unit:

0: ▶︎ Introduction
1: Fix .md in links
2: Moving a simple site to Astro
3: Astro, fix Form error “Content-Type was not one of…”
4: Astro page layout and middleware execution order
5: Astro, set caching headers
6: Astro, set response header
7: Deploying an Astro + PostgreSQL app on Railway
8: Using Astro locals
9: Using Cloudflare Turnstile on an Astro form
10: Using reCAPTCHA on an Astro form
11: Why not write logic in Astro layouts