Using Hygraph 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
.envasALGOLIA_ADMIN_API_KEY - Edit
/pages/index.jsand replace the Algolia App ID and Search Only API key with your own
npx degit hygraph/hygraph-examples/with-algolia with-algoliaInstall & Run:
cd with-algolia
npm install
npm run start
# or
cd with-algolia
yarn
yarn start