From bb136530c14655bd6db1c16a97a336f1077093b6 Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Tue, 2 Aug 2022 17:30:33 +0300 Subject: [PATCH] docs: fix search in reference (#1971) --- www/reference/gatsby-config.js | 1 + www/reference/src/components/search/index.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/www/reference/gatsby-config.js b/www/reference/gatsby-config.js index 7438986f8a..32c992debf 100644 --- a/www/reference/gatsby-config.js +++ b/www/reference/gatsby-config.js @@ -64,6 +64,7 @@ module.exports = { resolve: `gatsby-plugin-env-variables`, options: { allowList: ["ALGOLIA_API_KEY"], + allowList: ["ALGOLIA_APP_ID"], }, }, { diff --git a/www/reference/src/components/search/index.js b/www/reference/src/components/search/index.js index 186b6f6cb3..16f0804879 100644 --- a/www/reference/src/components/search/index.js +++ b/www/reference/src/components/search/index.js @@ -9,6 +9,7 @@ import { convertToKebabCase } from "../../utils/convert-to-kebab-case" import { navigate } from "gatsby-link" const algoliaApiKey = process.env.ALGOLIA_API_KEY || "temp" +const algoliaAppId = process.env.ALGOLIA_APP_ID || "temp" const Search = ({data}) => { const { goTo, api } = useContext(NavigationContext) @@ -72,6 +73,7 @@ const Search = ({data}) => { return ( } navigator={{