Hybrid Fetching

When using Static Site Generation (SSG), there may be occasions where a client-side approach or dynamic rendering is needed. However, with dynamic rendering, the first request can be slower because the page is built on demand, which can negatively impact the initial user experience.

To address this, we use a hybrid approach: SSG for existing pages and dynamic rendering for newly created pages.

Here are the two possible scenarios depicted in the diagram.

Figure: Flow when an existing page is requestedFigure: Flow when a new page is requested

Here is the documentation on fetching content across branches

Last Edited: January 20, 2026