diff --git a/src/components/MeliSearchInstant.tsx b/src/components/MeliSearchInstant.tsx index e39aff4..b100cfb 100644 --- a/src/components/MeliSearchInstant.tsx +++ b/src/components/MeliSearchInstant.tsx @@ -18,7 +18,7 @@ const MeliSearchInstant = () => { }); const tokenData = await token.json(); const { searchClient: meliSearchClient } = instantMeiliSearch( - process.env.MEILI_HOST!, // Host + process.env.NEXT_PUBLIC_MEILI_HOST!, // Host tokenData, // API key, { placeholderSearch: false, // default: true. diff --git a/src/components/SearchModalBeta.tsx b/src/components/SearchModalBeta.tsx index 061fa61..a2f66c3 100644 --- a/src/components/SearchModalBeta.tsx +++ b/src/components/SearchModalBeta.tsx @@ -163,7 +163,7 @@ const SearchModalBeta = ({ } const { searchClient } = instantMeiliSearch( - process.env.MEILI_HOST!, // Host + process.env.NEXT_PUBLIC_MEILI_HOST!, // Host tokenData.token.token, // API key, { placeholderSearch: true, // default: true.