Skip to content

Commit 7133234

Browse files
committed
feat: Kentico Kontent configuration updated
Fixes #45
1 parent ae1b344 commit 7133234

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,10 @@ npm i rxjs --save (because this is a peer dependency of the Kentico Kontent Deli
3333
previewApiKey: 'xxxxxxxxxxxxxxxxxxxxxxxxxxx',
3434
globalQueryConfig: {
3535
usePreviewMode: true, // Queries the Delivery Preview API.
36+
useSecureMode: false,
3637
},
3738
baseUrl: 'https://custom.uri/api/KenticoKontentProxy',
38-
securedApiKey: 'xxx',
39+
secureApiKey: 'xxx',
3940
enableSecuredMode: true
4041
},
4142
```

lib/module.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@ const path = require('path')
33
module.exports = function kenticokontent (moduleOptions) {
44
const options = Object.assign({
55
projectId: process.env.KENTICOKONTENT_PROJECTID || '',
6-
previewApiKey: process.env.KENTICOKONTENT_PREVIEWAPIKEY || null,
76
enableAdvancedLogging: process.env.KENTICOKONTENT_ENABLEADVANCEDLOGGING || false,
87
globalQueryConfig: {
9-
usePreviewMode: process.env.KENTICOKONTENT_ENABLEPREVIEWMODE || false
10-
},
8+
usePreviewMode: process.env.KENTICOKONTENT_USEPREVIEWMODE || false,
9+
useSecureMode: process.env.KENTICOKONTENT_USESECUREMODE || false
10+
},
1111
defaultLanguage: process.env.KENTICOKONTENT_DEFAULTLANGUAGE || null,
1212
retryAttempts: process.env.KENTICOKONTENT_RETRYATTEMPTS || null,
1313
baseUrl: process.env.KENTICOKONTENT_BASEURL || null,
1414
proxyUrl: process.env.KENTICOKONTENT_PROXYURL || null,
15-
securedApiKey: process.env.KENTICOKONTENT_SECUREDAPIKEY || null,
16-
enableSecuredMode: process.env.KENTICOKONTENT_ENABLESECUREDMODE || false,
15+
secureApiKey: process.env.KENTICOKONTENT_SECUREAPIKEY || null,
16+
previewApiKey: process.env.KENTICOKONTENT_PREVIEWAPIKEY || null,
1717
isDeveloperMode: process.env.KENTICOKONTENT_ISDEVELOPERMODE || false,
1818
config: {
1919
environment: this.options.dev ? 'development' : 'production'

0 commit comments

Comments
 (0)