
Astro Maintenance
Smart Maintenance & Coming-Soon Pages for Astro Sites
Astro Maintenance is my Astro integration that lets you add beautiful, reliable maintenance or "coming soon" screens to any Astro project — with zero hassle and full compatibility across platforms.
Why I built it: Deploying updates, fixing bugs, or preparing a launch often means temporarily taking a site offline. Standard solutions break in serverless environments (Vercel, Netlify, Cloudflare Workers) or force ugly hacks. I wanted a clean, customizable way that just works everywhere — even when Astro itself has an error or the build fails.
Key features:
- Multiple modes: Static custom text/message, live UTC-based countdown timer (auto-disables maintenance when time's up), or redirect to any internal page of your Astro site.
- Universal compatibility: Flawlessly supports Node.js, Vercel, Netlify, and Cloudflare Workers — templates render outside Astro's runtime engine using raw imports for serverless safety.
- Secure bypass: Set a preview password/keyword — visitors enter it once, and a secure HttpOnly cookie lets them access the site (with configurable expiration).
- Rich customization: Add your logo, brand colors, social links, dark mode support, and more. Built-in templates: Simple, Construction, Countdown.
- Runtime configuration: Change settings via environment variables — no rebuild needed, perfect for CI/CD and quick toggles.
- Smart extras: Auto-reload after countdown ends, high-performance template engine (83k+ templates/sec), and seamless user experience.
Demo at https://astro-maintenance.alexandr.studio/
Source on GitHub
Future plans: More built-in templates, easier custom template creation, and perhaps analytics for maintenance visits.
If you're tired of broken maintenance pages in production, give it a try — feedback and contributions are very welcome!