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 20a62c9 commit e1294a9Copy full SHA for e1294a9
lib/templates/plugin.template.js
@@ -3,7 +3,18 @@ import CacheService from '../services/CacheService';
3
4
export default (ctx, inject) => {
5
// Create new delivery client Instance
6
- const deliveryClient = new DeliveryClient(JSON.parse('KENTICOOPTIONS'));
+ let settings = JSON.parse('KENTICOOPTIONS');
7
+
8
+ // 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
+ });
16
17
+ const deliveryClient = new DeliveryClient(settings);
18
19
const cacheService = new CacheService([]);
20
0 commit comments