File tree Expand file tree Collapse file tree 2 files changed +13
-11
lines changed Expand file tree Collapse file tree 2 files changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -25,13 +25,15 @@ import { extendedPostcssConfigPlugin } from "./server/postcss";
25
25
const latestVersion = getLatestVersion ( ) ;
26
26
27
27
const config : Config = {
28
- onBrokenMarkdownLinks : "throw" ,
29
28
customFields : {
30
- innkeepConfig : {
31
- apiKey : process . env . INKEEP_API_KEY ,
32
- integrationId : process . env . INKEEP_INTEGRATION_ID ,
33
- organizationId : process . env . INKEEP_ORGANIZATION_ID ,
34
- } ,
29
+ inkeepConfig : ( ( ) => {
30
+ const configVars = process . env . secrets ? JSON . parse ( process . env . secrets ) : process . env ;
31
+ return {
32
+ apiKey : configVars . INKEEP_API_KEY ,
33
+ integrationId : configVars . INKEEP_INTEGRATION_ID ,
34
+ organizationId : configVars . INKEEP_ORGANIZATION_ID ,
35
+ }
36
+ } ) ( ) ,
35
37
} ,
36
38
clientModules : [
37
39
"./src/styles/variables.css" ,
@@ -121,7 +123,7 @@ const config: Config = {
121
123
} ,
122
124
123
125
onBrokenLinks : "warn" ,
124
- onBrokenMarkdownLinks : "warn " ,
126
+ onBrokenMarkdownLinks : "throw " ,
125
127
126
128
i18n : {
127
129
defaultLocale : "en" ,
Original file line number Diff line number Diff line change @@ -41,16 +41,16 @@ export function InkeepSearch() {
41
41
42
42
const { siteConfig } = useDocusaurusContext ( ) ;
43
43
44
- const innkeepConfig = siteConfig . customFields . innkeepConfig as {
44
+ const inkeepConfig = siteConfig . customFields . inkeepConfig as {
45
45
apiKey : string ;
46
46
integrationId : string ;
47
47
organizationId : string ;
48
48
} ;
49
49
50
50
const inkeepBaseSettings : InkeepWidgetBaseSettings = {
51
- apiKey : innkeepConfig . apiKey ,
52
- integrationId : innkeepConfig . integrationId ,
53
- organizationId : innkeepConfig . organizationId ,
51
+ apiKey : inkeepConfig . apiKey ,
52
+ integrationId : inkeepConfig . integrationId ,
53
+ organizationId : inkeepConfig . organizationId ,
54
54
organizationDisplayName : "Teleport" ,
55
55
primaryBrandColor : "#512FC9" ,
56
56
chatApiProxyDomain : "goteleport.com/inkeep-proxy" ,
You can’t perform that action at this time.
0 commit comments