How to use Netlify with gatsby-source-wordpress/WPGatsby

Does Netlify support WPGatsby’s “preview build” system? I can’t find any docs on this. Thanks!

Gatsby Cloud Preview and Incremental Builds will not come to Netlify in their current state, but the Stackbit integration actually provides both a preview and a real-time editing environment.

Stackbit serves the preview via a remote environment running your development server. To enable automatic content refresh in the preview, you can add the ENABLE_GATSBY_REFRESH_ENDPOINT environment variable along with Stackbit’s stackbitObjectsChanged dispatched event to your highest wrapping Gatsby component. Here are the docs with the details:

@hrishikesh What will be an equivalent to stackbitObjectsChanged for WordPress? I believe many of us are trying to find a solution to replicate the CMS Preview for WordPress provided in Gatsby Cloud, with such service abruptly ending in a few weeks.

I’m not sure if I understand your question @hazuremon. stackbitObjectsChanged should work for all officially supported Gatsby content sources, which I believe includes WordPress.