Company
Date Published
Author
Salma Alam-Naylor
Word count
2284
Language
English
Hacker News points
None

Summary

This article describes how to preview draft content on a static site powered by data from a Content Management System (CMS), specifically using Netlify and Contentful. The process involves creating a new branch deploy in Netlify, setting up a build hook URL to deploy the preview branch to a live URL, creating a custom Contentful app that triggers the build hook, deploying the new Contentful app to Netlify, and automating the deployment of the preview branch using a GitHub Action. This allows developers to preview their draft content without publishing it to production, giving them peace of mind and confidence to hit the publish button.