Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

storyblok-algolia-indexer

baroshem23.8kMIT1.1.0

Index Algolia with Storyblok content

algolia, storyblok, indexer

readme

storyblok-algolia-indexer

Setup

yarn add storyblok-algolia-indexer # yarn
npm i storyblok-algolia-indexer # npm

Basic usage

Initialize storyblok-algolia-indexer in your Node.js based serverless function

new StoryblokAlgoliaIndexer({
  algoliaAppId,
  algoliaApiAdminToken,
  algoliaIndexName,
  storyblokContentDeliveryApiToken,
  options
})
const options = {
  starts_with: 'articles/',
  per_page: 100,
  page: 1,
  version: 'draft'
}

Create webhook in Storyblok that will trigger this indexer accordingly to this article