Skip to content

Baroshem/storyblok-algolia-indexer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages