storyblok-algolia-indexer

1.1.0 • Public • Published

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

Package Sidebar

Install

npm i storyblok-algolia-indexer

Weekly Downloads

3,555

Version

1.1.0

License

MIT

Unpacked Size

4.11 kB

Total Files

4

Last publish

Collaborators

  • baroshem