Skip to content

1.0.0

Compare
Choose a tag to compare
@runeb runeb released this 13 Feb 23:14
· 49 commits to main since this release
bf9f02b

Version 1.0.0 brings some requested flexibility in how Sanity documents are fetched before you map them to Algolia records. It is now easy to resolve references. See the updated example in README.

Note that updating will require that you update your code slightly.

Before

  const sanityAlgolia = indexer(
    {
      post: algoliaIndex
    },
    

After

  const sanityAlgolia = indexer(
    {
      post: {index: algoliaIndex}
    },