You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.
For this plugin you need to add to your wp-config.php the link to the Gatsby site. define('GATSBY_PREVIEW_FRONTEND_URL', 'https://my-gatsby-site.netlify.app/');
You will also need to set up the gatsby site using this repo: https://github.com/CalebAtBare/wp-gatsby-demo-with-preview
and then set the env GATSBY_WPGRAPHQL_URL to your WPGraphQL endpoint.
Example: GATSBY_WPGRAPHQL_URL=https://wpgatsbydemo1.wpengine.com/graphql
WPGraphQL version: 0.10.3 (Also tested revisions with 0.12.1 but 0.10.3 is the latest supported by the source plugin)
Platform: WPEngine (with revisions enabled)
Other Plugins: WPGraphQL-Gatsby-Preview 0.1
WP Gatsby 0.4.16
WPGraphQL for Advanced Custom Fields 0.3.5
WPGraphQL JWT Authentication 0.4.1
Expected behavior: When I click preview and then the gatsby site queries the newest revision it should have all of the updated data for that revision.
Actual behavior: The first item in the flexible content array is not updated to use the revision data, but everything else in the array is updated correctly.
The text was updated successfully, but these errors were encountered:
To reproduce this you will need to import my wplocal export
(I'll DM Jason this over slack, if anyone else wants to try you can ask for it)
This WP install is using a custom plugin I built to preview WPGraphQL revisions in Gatsby. https://github.com/CalebBarnes/WPGraphQL-Gatsby-Preview
For this plugin you need to add to your wp-config.php the link to the Gatsby site.
define('GATSBY_PREVIEW_FRONTEND_URL', 'https://my-gatsby-site.netlify.app/');
You will also need to set up the gatsby site using this repo: https://github.com/CalebAtBare/wp-gatsby-demo-with-preview
and then set the env
GATSBY_WPGRAPHQL_URL
to your WPGraphQL endpoint.Example:
GATSBY_WPGRAPHQL_URL=https://wpgatsbydemo1.wpengine.com/graphql
WPGraphQL version: 0.10.3 (Also tested revisions with 0.12.1 but 0.10.3 is the latest supported by the source plugin)
Platform: WPEngine (with revisions enabled)
Other Plugins:
WPGraphQL-Gatsby-Preview 0.1
WP Gatsby 0.4.16
WPGraphQL for Advanced Custom Fields 0.3.5
WPGraphQL JWT Authentication 0.4.1
Expected behavior: When I click preview and then the gatsby site queries the newest revision it should have all of the updated data for that revision.
Actual behavior: The first item in the flexible content array is not updated to use the revision data, but everything else in the array is updated correctly.
The text was updated successfully, but these errors were encountered: