From c4c378290aa89107936eb9633dbb76c4b671d03b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Vannicatte?= Date: Wed, 9 Feb 2022 05:29:44 -0800 Subject: [PATCH] fix(website): add Algolia search API key (#726) Summary: **Summary** This PR update the docusaurus config to expose the Algolia search API key. _note: Algolia search API keys can be disclosed publicly_ **Motivation** Search does not work on the production website. **Test plan** - `cd website` - `yarn start` - Search Pull Request resolved: https://github.com/facebook/metro/pull/726 Reviewed By: motiz88 Differential Revision: D34105655 Pulled By: rh389 fbshipit-source-id: 6a9fda7e92ff27ddbf5212cca72c138ec3672f56 --- website/docusaurus.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index 1db710835f..0b73a6a4c0 100644 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -94,7 +94,8 @@ const siteConfig = { }, image: 'img/opengraph.png', algolia: { - apiKey: process.env.ALGOLIA_METRO_API_KEY || ' ', + apiKey: 'd51e7fbd21ccab3db4c83f0f736f6a3a', + appId: 'T38HJZTD87', indexName: 'metro', }, gtag: {