next-cms-ghost
next-cms-ghost copied to clipboard
Integrate post/draft preview
As stated in the readme, next-cms-ghost supports the NextJS Feature "Support for Preview". Previewing drafts with the next.js frontend would be really nice to have.
Would be great if an example could be integrated into next-cms-ghost or some how-to could be added to the readme.
Tried to get it working with a customized version of https://github.com/Inosida-se/Ghost-Headless-Cms-Fix - but this is sadly not working with drafts/preview routes :(
Thanks a lot in advance!
As stated in the readme this repo is prepared to display drafts from a Next.js perspective (drafts are not cached, so updates can be shown instantly). However, to get it to fully work with Ghost, there is additional coding needed. Unfortunately, the Ghost Content API does not allow fetching drafts, so you must resort to the Admin API. The Admin API has different access patterns, so there is some work needed to fetch from the Admin API and integrate that into the existing content fetching algorithms.