Revalidate Button
Adds a revalidate button to the content manager edit view.
Strapi plugin Revalidate Button
The plugin comes as a solution to the problem that Webhook does not have a solution for a manual run, and we want to allow the user to first check his content in Preview.
The user can press a button called "Revalidate" after he has looked at the Preview and he is sure of the new content and manually refer to the page (Next.js) that will update the new content.
The button takes the link from Strapi's webhooks. You must add a line in the webhooks called Revalidate. Our recommendation is to enable the trigger of the Webhooks only to perform Publish or Unpublish.
Installation
1yarn add strapi-plugin-revalidate-button@latest
Enabled the Plugin in plugins.js file
1// ./config/plugins.js
2'use strict';
3
4module.exports = {
5 'revalidate-button': {
6 enabled: true,
7 },
8};
Add row on Webhoock config
Go to edit view
Install now
npm install strapi-plugin-revalidate-button
Create your own plugin
Check out the available plugin resources that will help you to develop your plugin or provider and get it listed on the marketplace.