JSPM

@dathaplus/strapi-plugin-revalidate-button

1.0.10
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 13
  • Score
    100M100P100Q90212F
  • License MIT

Adds a revalidate button to the content manager edit view.

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@dathaplus/strapi-plugin-revalidate-button) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    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

    yarn add strapi-plugin-revalidate-button@latest

    Enabled the Plugin in plugins.js file

    // ./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