Fixing draft previews in Jamstack setup with Headless Ghost

Thought I’d share this article I wrote on using Ghost with my Jamstack setup and fixing the preview button when working with draft posts:

I use Ghost as a Headless CMS alongside Eleventy which is hosted on Netlify. I like it but it means that I miss out on some of the features that Ghost has built in, such as previewing drafts. In the article I explain how I got the preview button working again. Hoping that someone finds this useful with their stack :blush:

1 Like

For anyone who’s TL;DR, I have an Eleventy plugin for pulling Ghost API data which can now return Admin API data such as draft posts: