diff --git a/src/components/UI/Search.tsx b/src/components/UI/Search.tsx index 0d9b64c75a..947a0950e6 100644 --- a/src/components/UI/Search.tsx +++ b/src/components/UI/Search.tsx @@ -3,14 +3,16 @@ import { DocSearch } from '@docsearch/react'; import '@docsearch/css'; export const Search: React.FC = () => { - // TODO: Replace Algolia test keys with '' when API key available for this repo (place in .env) - const appId = process.env.NEXT_PUBLIC_ALGOLIA_APP_ID || 'R2IYF7ETH7' - const apiKey = process.env.NEXT_PUBLIC_ALGOLIA_SEARCH_API_KEY || '599cec31baffa4868cae4e79f180729b' - const indexName = process.env.NEXT_PUBLIC_ALGOLIA_BASE_SEARCH_INDEX_NAME || 'docsearch' + const appId = process.env.NEXT_PUBLIC_ALGOLIA_APP_ID || '' + const apiKey = process.env.NEXT_PUBLIC_ALGOLIA_SEARCH_API_KEY || '' + const indexName = process.env.NEXT_PUBLIC_ALGOLIA_BASE_SEARCH_INDEX_NAME || '' + + // TODO: Replace Algolia test keys with above env vars when ready return ( + appId="R2IYF7ETH7" + apiKey="599cec31baffa4868cae4e79f180729b" + indexName="docsearch" + /> ); }