Skip to content

Commit fd157e7

Browse files
committed
chore: fix issue reported by Lucas Amaral
Signed-off-by: Lucas Gonze <[email protected]>
1 parent 52dc470 commit fd157e7

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

docusaurus/siteConfig.js

+10-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@
1616
const url = process.env.DOCUSAURUS_URL || 'https://magmacore.org'
1717
const baseUrl = process.env.DOCUSAURUS_BASE_URL || '/'
1818

19+
// Security note on visibility of this secret in the source code: the API key is
20+
// not secured by secrecy. It is secured by a referer check for magma.github.io
21+
// and by a rate limit, both administered on the Algolia site. Linux Foundation
22+
// has a 1Password file with the login info. For debugging on your own machine
23+
// set the environment variable to this unsecured key:
24+
// f95caeb7bc059b294eec88e340e5445b
25+
const algoliaApiKey =
26+
process.env.ALGOLIA_API_KEY || '7b4d4c984e53d3a746869d22ed9e983b';
27+
1928
const mermaid = require('remark-mermaid')
2029

2130
const siteConfig = {
@@ -78,7 +87,7 @@ const siteConfig = {
7887

7988
// Enable Algolia DocSearch Functionality within Docusaurus
8089
algolia: {
81-
apiKey: 'f95caeb7bc059b294eec88e340e5445b',
90+
apiKey: algoliaApiKey,
8291
indexName: 'magma',
8392
},
8493

0 commit comments

Comments
 (0)