Adding Open Preview button to gatsby portfolio starter. The button is now located in the document actions menu in studio, and applies to all content types. As part of this PR, we are following the steps for manually setting up the button on pre existing sites:
We are utilizing the document actions extension to add a new action from https://www.npmjs.com/package/sanity-plugin-gatsby-cloud-preview. The action will redirect folks to a new tab with a content sync url configured to redirect them to a preview of the page they are editing. We have bumped the version of gatsby-source-sanity that utilizes the new PINC builds and content sync functionality.
Purpose:
Adding Open Preview button to gatsby portfolio starter. The button is now located in the document actions menu in studio, and applies to all content types. As part of this PR, we are following the steps for manually setting up the button on pre existing sites:
https://www.notion.so/gatsbyjs/Gatsby-Open-Preview-Sanity-46fdf6b7b8e343ffaf5306bcba73375b
Technical details:
We are utilizing the document actions extension to add a new action from https://www.npmjs.com/package/sanity-plugin-gatsby-cloud-preview. The action will redirect folks to a new tab with a content sync url configured to redirect them to a preview of the page they are editing. We have bumped the version of gatsby-source-sanity that utilizes the new PINC builds and content sync functionality.