There are a variety of approaches, but Shaw has set his sights on a very developer-ergonomic version here where you can leave queries on individual components and mark them as SSR-or-not.
There are two “official” approaches:
These are sorta-kinda-OK, except…
These limitations are workable in some situations, but we want to avoid duplicating code and also have server-side rendered queries that aren’t top-level on the page.
The post 331: Next.js + Apollo + Server Side Rendering (SSR) appeared first on CodePen Blog.