File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,9 @@ module.exports = function kenticokontent (moduleOptions) {
55 projectId : process . env . KENTICOKONTENT_PROJECTID || '' ,
66 previewApiKey : process . env . KENTICOKONTENT_PREVIEWAPIKEY || null ,
77 enableAdvancedLogging : process . env . KENTICOKONTENT_ENABLEADVANCEDLOGGING || false ,
8- enablePreviewMode : process . env . KENTICOKONTENT_ENABLEPREVIEWMODE || false ,
8+ globalQueryConfig : {
9+ usePreviewMode : process . env . KENTICOKONTENT_ENABLEPREVIEWMODE || false
10+ } ,
911 defaultLanguage : process . env . KENTICOKONTENT_DEFAULTLANGUAGE || null ,
1012 retryAttempts : process . env . KENTICOKONTENT_RETRYATTEMPTS || null ,
1113 baseUrl : process . env . KENTICOKONTENT_BASEURL || null ,
Original file line number Diff line number Diff line change @@ -6,13 +6,7 @@ export default (ctx, inject) => {
66 let settings = JSON . parse ( 'KENTICOOPTIONS' )
77
88 // Add tracking header
9- settings = Object . assign ( { } , settings , {
10- globalQueryConfig : {
11- customHeaders : [
12- { header : 'X-KC-SOURCE' , value : 'kentico-kontent-nuxt-module' }
13- ]
14- }
15- } )
9+ settings = Object . assign ( { } , settings )
1610
1711 const deliveryClient = new DeliveryClient ( settings )
1812
You can’t perform that action at this time.
0 commit comments