add application tracking to X-Contentful-User-Agent
This commit is contained in:
committed by
Benedikt Rötsch
parent
5e72fd9c6f
commit
cf2101b27b
@@ -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'
|
||||||
|
|||||||
Reference in New Issue
Block a user