We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60c56fe commit 12b2181Copy full SHA for 12b2181
lib/templates/plugin.template.js
@@ -4,17 +4,13 @@ import CacheService from '../services/CacheService'
4
export default (ctx, inject) => {
5
// Create new delivery client Instance
6
let settings = JSON.parse('KENTICOOPTIONS')
7
-
8
- // Adds globalQueryConfig if not already set
9
- if(!settings.globalQueryConfig)
10
- {
11
- settings.globalQueryConfig = {}
12
- }
+
13
// Adds customHeaders if not already set
14
if(!settings.globalQueryConfig.customHeaders)
15
{
16
settings.globalQueryConfig.customHeaders = []
17
}
18
// Adds X-KC-SOURCE to identify this module is in use
19
settings.globalQueryConfig.customHeaders.push(
20
{ header: 'X-KC-SOURCE', value: 'kentico-kontent-nuxt-module' }
0 commit comments