https://github.com/baroshem/storyblok-algolia-indexer
https://github.com/baroshem/storyblok-algolia-indexer
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/baroshem/storyblok-algolia-indexer
- Owner: Baroshem
- License: mit
- Created: 2022-01-22T10:05:48.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-10T13:44:31.000Z (over 1 year ago)
- Last Synced: 2025-03-17T11:21:27.508Z (3 months ago)
- Language: JavaScript
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# storyblok-algolia-indexer
## Setup
```sh
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
```javascript
new StoryblokAlgoliaIndexer({
algoliaAppId,
algoliaApiAdminToken,
algoliaIndexName,
storyblokContentDeliveryApiToken,
options
})
``````js
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](https://www.storyblok.com/tp/index-storyblok-algolia)