Want to create an interactive transcript for this episode?
Podcast: CodePen Radio
Episode: 331: Next.js + Apollo + Server Side Rendering (SSR)
Description: Our goal here was to explore server-side rendering (SSR) in Next.js using data from Apollo GraphQL, for faster client-rendering and SEO benefits.
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:
Apollo's documentationNext.js' example
These are sorta-kinda-OK, except...
They have to be configured per-pageThey are mostly limited to queries at the top page levelYou'd likely need to duplicate queries with slightly differently handling...