Modern web development with headless Drupal - an opinionated guide
summary
Opinionated prescription for headless Drupal: a working Next.js + Drupal stack using GraphQL and TypeScript that delivers live previews, component-driven pages and CDN caching. The demo shows Next.js rendering via incremental static regeneration with an on‑demand revalidation API, GraphQL persistent queries/APQ served by GraphQL Compose, and end‑to‑end type-safe queries (GraphQL → TypeScript codegen) so UI components map directly to Drupal data. Preview uses an iframe draft mode; a component resolver + transformers normalize Drupal payloads to UI props and the workflow actually runs locally and on CDN.
AI-written summary · about
chapters (11)
- 0:00Introduction to headless Drupal
- 7:12Demo of Contentful's live preview
- 12:38Key components of decoupled sites
- 15:32GraphQL API for Drupal data fetching
- 18:44Demo of GraphQL queries and rendering
- 27:16Why use GraphQL over REST
- 32:40Rendering techniques in React
- 35:11Demo of static vs dynamic rendering
- 40:35Implementing preview in decoupled Drupal
- 44:54Jesús' demo of modern editorial experience
- 54:07Recap and closing recommendations
