Astro Islands & SSR (50 Qs)•Part 1: Basic & Foundational Concepts (Junior / Entry-Level)
SSG vs. SSR in Astro (`output: 'static' | 'server' | 'hybrid'`).
senior LevelSSR & HydrationAstro
In Simple Words:
Configure rendering strategy in astro.config.mjs:
output: 'static'(Default): Builds pre-rendered HTML files at build time. Ultra-fast, hostable on any static CDN (Cloudflare Pages, S3).output: 'server': Renders HTML dynamically on every request via a Node or Edge adapter. Used for dynamic dashboards, user authentication, and personalized content.output: 'hybrid'(PPR): Pre-renders everything statically by default, but allows individual routes to opt-in to SSR withexport const prerender = false;.