About This Demo

This is a headless (decoupled) CMS starter: WordPress manages the content, Next.js 16 renders the experience, and both run on Pantheon. Content flows one way — from WordPress to the frontend over the REST API — so editors work in a familiar CMS while developers build a fast, modern frontend.
What’s inside
- WordPress backend — the REST API, pretty permalinks, and an
eventcustom post type with ACF fields. Content types: Page, Article (native post), and Event, plus a Tags taxonomy. - Next.js 16 frontend — App Router, React 19, TypeScript, and Tailwind CSS 4. Routes mirror WordPress content:
/blog,/events,/tags, and pages by slug. - Pantheon platform — one WebOps workflow for both halves: Git-based deploys, Multidev preview environments, a Dev → Test → Live pipeline, and a Global CDN.
The stack
| Layer | Technology |
|---|---|
| Backend | WordPress · REST API · ACF · Pantheon Advanced Page Cache |
| Frontend | Next.js 16 (App Router) · React 19 · TypeScript · Tailwind CSS 4 |
| Integration | WordPress REST API over HTTPS · surrogate-key cache tags · on-demand revalidation |
| Platform | Pantheon WebOps · Terminus CLI · Global CDN · Google Cloud Run runtime |
| Local dev | DDEV — two projects (backend + frontend) run side by side |
Features
- Three content types (Page, Article, Event) with images, tags, and event metadata.
- Content model defined as code in a must-use plugin; demo content seeded with WP-CLI.
- On-demand revalidation wired through a WordPress webhook and the frontend’s
/api/revalidateroute. - Optimized images with
next/image, light/dark theming, and a live Pantheon connection indicator in the footer.
How it’s assembled
The WordPress site’s structure lives in a must-use plugin (headless-content-model.php), and the demo content is created by an idempotent WP-CLI seeder (content-seed/seed.php) from per-item YAML files. The articles and events here summarize and link to real material published by Pantheon.
Run it & ship it
Locally, DDEV runs everything: ddev init in the wordpress/ project installs and seeds the backend, and ddev init in the frontend/ project starts the Next.js dev server. For production, both apps deploy to Pantheon and are managed with Terminus across dev / test / live — on Pantheon’s now generally available managed Next.js hosting.
New here? See the Architecture Overview for how the pieces fit together, or Getting Started to run it yourself.
Learn more: Next.js on Pantheon · Decoupled CMS · Decoupled documentation.