From a7f270cd275b733a80f900f4dba34a432da1219d Mon Sep 17 00:00:00 2001 From: Emmanuel Veyrat Date: Thu, 5 Sep 2024 00:47:33 +0200 Subject: [PATCH] Fix instantMeiliSearch searchClient export --- src/lib/search-client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/search-client.ts b/src/lib/search-client.ts index 345689355..daf794907 100644 --- a/src/lib/search-client.ts +++ b/src/lib/search-client.ts @@ -5,7 +5,7 @@ const endpoint = const apiKey = process.env.NEXT_PUBLIC_SEARCH_API_KEY || "test_key" -export const searchClient = instantMeiliSearch(endpoint, apiKey) +export const { searchClient } = instantMeiliSearch(endpoint, apiKey) export const SEARCH_INDEX_NAME = process.env.NEXT_PUBLIC_INDEX_NAME || "products"