Use Next.js Static Site Generation with Cosmic
summary
Builds a small blog that fetches content at build time using Next.js getStaticProps and precomputes routes with getStaticPaths, reads posts from Cosmic CMS, and deploys the static site so edits trigger rebuilds via webhooks. The demo shows local development, draft preview considerations, and a full Git→deploy flow that successfully publishes new posts after a webhook-triggered build, illustrating when SSG is appropriate versus server rendering.
AI-written summary · about
chapters (5)
- 0:00Start
- 15:02Page Routes
- 16:10Builds
- 16:30Development and Previewing
- 18:21What does Headless CMS mean?
related talks
54mUsing GitHub to Power Up Your Static Sites
10mStatic Websites - The Final Frontier
40mStatic and Dynamic Next.js
29mIntegrating a Headless CMS with NextJS
30mBuild Faster, Better Apps with SSG, Headless CMS & Azure Static Web Apps
21mA Saga of Web Rendering Woes
22mHow to add a built-in authoring experience to Next.js
27mSSR & SSG in NextJS
