Question
Astro + Vercel: Choosing static vs hybrid output for low‑traffic cost reduction
Neel Nea
0 reputation · 13 Jun 2025, 01:08 UTC
94.2K views0
Goal: Minimize compute costs for a low‑traffic site
An Astro project is deployed to Vercel. The site contains a handful of dynamic pages that require server‑side rendering, but the majority of content is static. The objective is to keep monthly compute usage (and thus cost) as low as possible while still supporting the dynamic routes.
Astro offers two output modes:
output: "static"– fully static build, no runtime required.output: "hybrid"– mix of static pages and SSR routes.
Key constraints:
- The ratio of dynamic to static pages is low (≈5%).
- Build times should stay within free-tier CI limits.
- Serverless runtime must be compatible with Vercel’s adapter.
Unresolved Questions
- What is the most cost‑effective way to mark only the truly dynamic pages for SSR in a hybrid Astro project on Vercel?
- How does the number of SSR routes affect Vercel’s compute cost, and is there a breakpoint where static pre‑rendering becomes cheaper?
- Can Astro’s
prerenderflag be used to selectively pre‑render pages that would otherwise be SSR, and what impact does that have on build time versus runtime cost?