File tree 1 file changed +10
-1
lines changed
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 16
16
const url = process . env . DOCUSAURUS_URL || 'https://magmacore.org'
17
17
const baseUrl = process . env . DOCUSAURUS_BASE_URL || '/'
18
18
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
+
19
28
const mermaid = require ( 'remark-mermaid' )
20
29
21
30
const siteConfig = {
@@ -78,7 +87,7 @@ const siteConfig = {
78
87
79
88
// Enable Algolia DocSearch Functionality within Docusaurus
80
89
algolia : {
81
- apiKey : 'f95caeb7bc059b294eec88e340e5445b' ,
90
+ apiKey : algoliaApiKey ,
82
91
indexName : 'magma' ,
83
92
} ,
84
93
You can’t perform that action at this time.
0 commit comments