GraphCMS just announced the release of an integration for Netlify. This integration allows Netlify sites and apps to be built and deployed from within the GraphCMS UI itself, with a single click.
The integration allows you to update your static deployments via a button in the GraphCMS content view. Handled differently than by webhooks, the only configuration needed is connecting your GraphCMS project to your Netlify site/app and selecting which content entries can trigger a rebuild via the UI.
This integration allows you to install a button in the GraphCMS sidebar of a content model for manual redeploys, alongside a visual indicator of deployment status.
Log in to your GraphCMS project and select Integrations from the sidebar.
Select Netlify, and enable the integration. Your GraphCMS user should have the necessary permissions for this.
Ensure that you’re connected to your Netlify account so your Netlify sites can appear in the next step.
Select the sites you want to enable the integration for and ensure that they have continuous deployment enabled.
Select the content models that should show the Netlify button in the sidebar. This could range from anything larger like pages and posts, or something granular like authors and headers. Any content change that could trigger a new deploy should have the button enabled.
When creating or editing published content, simply click on Start Building Demo to trigger a new build. You’ll be able to see the status of your build once triggered within the sidebar itself.
That’s it, you’re set!
Note: The GraphCMS team recommends setting up Netlify Deploy Preview links to support your workflows and preview your content before pushing it to Production. You can read more about also setting up GraphCMS Preview URLs on the GraphCMS Docs.
#graphcms #react #gatsby #netlify #next