Araldo Fidalgo
01/16/2025, 10:34 PMJason Bosco
01/17/2025, 12:06 AMHayden Hoang
01/17/2025, 1:31 PMAraldo Fidalgo
01/17/2025, 5:29 PMAraldo Fidalgo
01/17/2025, 5:34 PMHayden Hoang
01/18/2025, 11:51 AMI testing https://algolia.nuxtjs.org/advanced/vue-instantsearch/, and it is going okWe have a typesense-instantsearch-adapter library that you can plug in the
searchClient
in createServerRootMixin
without the need for Algolia Nuxt module.
import TypesenseInstantSearchAdapter from 'typesense-instantsearch-adapter';
export const typesenseInstantsearchAdapter = () => {
const config = useRuntimeConfig();
return new TypesenseInstantSearchAdapter({
server: {
apiKey: config.public.PUBLIC_TYPESENSE_SEARCH_ONLY_API_KEY || 'xyz',
nodes: [
{
url:
config.public.PUBLIC_TYPESENSE_SERVER_URL ||
'<http://localhost:8108>',
},
],
},
additionalSearchParameters: {
query_by: '',
},
});
};
const searchClient = typesenseInstantsearchAdapter().searchClient;
const serverRootMixin = ref(
createServerRootMixin({
searchClient,
indexName,
})
);
Hayden Hoang
01/20/2025, 5:21 PMAraldo Fidalgo
01/20/2025, 5:45 PMAraldo Fidalgo
01/25/2025, 11:19 PMAraldo Fidalgo
01/25/2025, 11:31 PMHayden Hoang
01/26/2025, 9:43 AMThe source file contains huge data in the script with the id="__NUXT_DATA__"
I think that it is the data that useAsyncData gets on first load for the SSR?
This it be change?Yes, that script contains the application state to hydrate on the client. The amount of data depends on how big a single hit document is and the number of hits per page, e.g...
Araldo Fidalgo
01/26/2025, 6:01 PM