Skip to content

Commit

Permalink
fix: Update MeiliSearch host environment variable in SearchModalBeta …
Browse files Browse the repository at this point in the history
…component

- Changed environment variable from MEILI_HOST to NEXT_PUBLIC_MEILI_HOST for proper configuration.
- Ensures compatibility with Next.js environment variable handling for client-side access.
  • Loading branch information
bramses committed Jan 8, 2025
1 parent 3f6d2f7 commit be8f288
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/MeliSearchInstant.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/components/SearchModalBeta.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit be8f288

Please sign in to comment.