From 7f1421c2184e94d4c7d0443cba135095d7b8e796 Mon Sep 17 00:00:00 2001 From: Minh Tu Ngo <63818505+minhtungo@users.noreply.github.com> Date: Wed, 2 Aug 2023 04:47:59 -0400 Subject: [PATCH] docs: fixes env variable name in next.js docs (#4665) the SEARCH_INDEX_NAME variable should equal to process.env.NEXT_PUBLIC_SEARCH_API_KEY (as in the .env file) instead of NEXT_PUBLIC_INDEX_NAME. Co-authored-by: Shahed Nasser --- docs/content/plugins/search/algolia.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content/plugins/search/algolia.md b/docs/content/plugins/search/algolia.md index 932d54b7ff..6b3a96e6d9 100644 --- a/docs/content/plugins/search/algolia.md +++ b/docs/content/plugins/search/algolia.md @@ -274,7 +274,7 @@ const apiKey = export const searchClient = algoliasearch(appId, apiKey) export const SEARCH_INDEX_NAME = - process.env.NEXT_PUBLIC_INDEX_NAME || "products" + process.env.NEXT_PUBLIC_SEARCH_INDEX_NAME || "products" ``` If you run your Next.js Starter Template now while the Medusa backend is running, the search functionality will be available in your storefront.