Replies: 2 comments 1 reply
-
AVuengers assemble! Let me know what you think about it :) @danielroe @pi0 @alexjoverm @alvarosabu @timbenniks @atinux @yassilah |
Beta Was this translation helpful? Give feedback.
-
I'm all for reducing friction for the developer experience! I recently did a deep dive on adding Algolia to a Strapi powered blog (Next front end, not Nuxt -- sorry!). There are definitely commonalities between these ingestion patterns and it would be super cool to somehow normalize them. But I wonder if the application framework is the right place for this? These would be provisioned as serverless functions to compliment the application? |
Beta Was this translation helpful? Give feedback.
-
Intro
The Algolia module for Nuxt now has all basic functionality that is related to search and recommend (and it also provides a support for Vue Instantsearch). Now we could focus on integrating it with other services like Content Management System.
I have recently released an article for Storyblok where I was explaining how to build a Nuxt 3 application with Algolia and Storyblok (including automatic indexing of indices using Storyblok publish hooks) -> https://www.storyblok.com/tp/using-storyblok-algolia-in-nuxt-3
Similar article was also created for Contentful -> https://www.contentful.com/developers/docs/tutorials/general/enhancing-search-experience-with-algolia/
This article explains it quite well, however it requires some manual work from the user in order to make it work, so I thought about automating it so that user would only have to define some configuration option for algolia module in nuxt.config.ts and the indexing will be done automatically (Not fully automatically because it will still require a serverless function or triggering an endpoint manually but you get the idea ;) ).
Code
Option 1:
Option 2:
Indexer option is optional, while selecting a storyblok or contentful (or in the future more providers) will be mandatory when indexer option will be enabled. By having all these env variables, we could easily trigger a StoryblokAlgoliaIndexer from the package I have created or a ContentfulAlgoliaIndexer in the future.
Under the hood, this new feature would create an appriopriate endpoint/serverMiddleware to handle this kind of functionality for the user.
Summary
As a part of this we would also have to create a docs on how to use both of the CMSes with option of indexing.
Beta Was this translation helpful? Give feedback.
All reactions