Overview - Hybrid rendering (static + server)
What is it?
Hybrid rendering in Astro means combining static site generation with server-side rendering in one project. Static parts are pre-built into HTML files for fast loading, while dynamic parts are rendered on the server when requested. This approach lets you get the best of both worlds: speed and fresh data. It is useful for websites that have mostly fixed content but also need some real-time updates.
Why it matters
Without hybrid rendering, websites either load everything upfront (which can be slow and heavy) or generate everything on the server (which can be slower for users). Hybrid rendering solves this by pre-building what doesn't change and only rendering what needs to be fresh on demand. This improves user experience by making pages load quickly while still showing up-to-date information.
Where it fits
Before learning hybrid rendering, you should understand static site generation and server-side rendering basics. After mastering hybrid rendering, you can explore advanced data fetching, incremental static regeneration, and edge rendering techniques.
