add application tracking to X-Contentful-User-Agent

This commit is contained in:
Benedikt Rötsch
2017-10-04 17:35:23 +02:00
committed by Benedikt Rötsch
parent 5e72fd9c6f
commit cf2101b27b

View File

@@ -10,10 +10,12 @@ exports.initClient = (options) => {
cpa: process.env.CF_PREVIEW_ACCESS_TOKEN cpa: process.env.CF_PREVIEW_ACCESS_TOKEN
} }
cdaClient = createClient({ cdaClient = createClient({
application: 'contentful.the-example-app.node',
space: config.space, space: config.space,
accessToken: config.cda accessToken: config.cda
}) })
cpaClient = createClient({ cpaClient = createClient({
application: 'contentful.the-example-app.node',
space: config.space, space: config.space,
accessToken: config.cpa, accessToken: config.cpa,
host: 'preview.contentful.com' host: 'preview.contentful.com'