Back to blog
Blog

Building a Blog with Cosmic CMS and Next.js

Lee Robinson's avatar

Lee Robinson

September 09, 2020

Note: This article has been archived as it may contain features or techniques not supported with the latest version of Cosmic.

cover image

Next.js is a React framework for building hybrid applications. It's flexible, extensible, and works great with any data provider. In this tutorial, part two of a two-part series, we'll show you how to build a blog with Cosmic CMS and Next.js (you can watch part one, Getting Started with Cosmic CMS and Next.js here).

We'll run our blog locally, talk through static-site generation, and publish updates to our site. Next, we'll discuss preview mode and how to draft posts Cosmic CMS. Finally, we'll walk through fallback loading states and publish our draft post to production.