Same URL, three architectures. Here's what happens between the click and the pixels.
Every visitor pays the full cost.
The default. Work happens at build time.
Opt-in per page. Rendered fresh on a fast runtime.
The best part: SSG is Astro's default — every page is pre-rendered unless you say otherwise.
For pages that need fresh data (search results, logged-in dashboards, cart pages), drop
export const prerender = false;
at the top of that one .astro file and it switches to SSR. Same project, per-page choice.
Traditional WordPress does all the work on every visit. Astro SSG does it once, when you deploy.
Traditional WordPress
Site returns 500 errors. Every page is dead until WP is back up.
Astro (headless WordPress)
Site keeps working. The HTML is on the CDN, not the WP server. WP only matters at the next build. You can even take WP offline for maintenance and visitors won't notice.