This 81-lesson course builds a blog from a pre-made layout through to a live, statically optimized deployment on Vercel, using Sanity as the content backend instead of a traditional database.
Setting up the content
You'll get a working introduction to Sanity Studio, creating Blog and Author document types and defining fields for things like code blocks and images, then fetching that content into the Next.js app and styling it correctly, code blocks included.
Rounding out the app
- Filtering, pagination, and sorting for blog listings
- Light and dark theming using the provider/consumer pattern
- A preview mode for reviewing draft posts before they go live
The course also covers the fundamentals of both platforms along the way — Sanity's API-driven content model and Next.js's page-based routing with static and server-side rendering — before shipping the finished blog to Vercel.