Using GraphCMS webhooks to sync data to Algolia on new published content.
• Demo
- Create Algolia account
- Insert an Algolia index called
products
- Enter your Algolia admin API key into
.env
asALGOLIA_ADMIN_API_KEY
- Edit
/pages/index.js
and replace the Algolia App ID and Search Only API key with your own
npx degit graphcms/graphcms-examples/with-algolia with-algolia
Install & Run:
cd with-algolia
npm install
npm run start
# or
cd with-algolia
yarn
yarn start