Adds a revalidate button to the content manager edit view.
The Strapi plugin, Revalidate Button, is designed to solve the problem of manually running a webhook to update content in the Preview of a Next.js page. This plugin allows users to press a button called “Revalidate” after previewing their content and being sure of the changes. By manually referring to the page, the new content is updated. The button retrieves the link from Strapi’s webhooks by adding a line called “Revalidate”. It is recommended to enable the trigger of the Webhooks only for publishing or unpublishing content.
To install and enable the Revalidate Button plugin, follow these steps:
plugins.js file.The Strapi plugin Revalidate Button provides a solution to the lack of manual run functionality in Strapi’s webhooks. By allowing users to manually revalidate the updated content in the Preview, it ensures that only the finalized and verified content is updated in the Next.js page. With easy installation and integration with Strapi’s webhooks, the Revalidate Button plugin enhances the user experience and content management process.