Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 944 Bytes

README.md

File metadata and controls

23 lines (18 loc) · 944 Bytes

strapi-plugin-stellate (alpha)

This plugin helps with using Stellate in front of a Strapi GraphQL API.

It automatically takes care of invalidating the cache when content is updated in Strapi, no matter the source of the update. (admin panel, GraphQL mutation, REST API, etc)

Usage

  1. Set up Stellate for your Strapi GraphQL API
  2. Install the Strapi plugin: npm install strapi-plugin-stellate
  3. Add the plugin to ./config/plugins.js and add your Stellate service's name and purging API token:
module.exports = {
  stellate: {
    config: {
      serviceName: "...", // REQUIRED: Your Stellate service's name
      purgingAPIToken: "...", // REQUIRED: Your Purging API token
      soft: false, // OPTIONAL: Whether you want to use soft purging
    },
  },
};