Strapi plugin logo for Revalidate Button

Revalidate Button

Adds a revalidate button to the content manager edit view.

thumbnail for Revalidate Button

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

1
yarn add strapi-plugin-revalidate-button@latest

Enabled the Plugin in plugins.js file

1
2
3
4
5
6
7
8
// ./config/plugins.js
'use strict';

module.exports = {
  'revalidate-button': {
    enabled: true,
  },
};

Add row on Webhoock config

Screenshot for list view in Strapi revalidate button plugin

Go to edit view

Screenshot for list view in Strapi revalidate button plugin

Install now

npm install strapi-plugin-revalidate-button

STATS

5 GitHub stars34 weekly downloads

Last updated

110 days ago

Strapi Version

4.4.0 and above

Author

github profile image for Dudi Kaplan
Dudi Kaplan

Useful links

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.