Skip to content

Commit 168ff60

Browse files
authored
Fix/contentful add header (#29028)
* contentful: enrich API requests with integration name and version * build: upgrade to latest Contentful SDK
1 parent a3ad6d7 commit 168ff60

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/gatsby-source-contentful/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"base64-img": "^1.0.4",
1616
"bluebird": "^3.7.2",
1717
"chalk": "^4.1.0",
18-
"contentful": "^7.14.12",
18+
"contentful": "^8.1.7",
1919
"fs-extra": "^9.0.1",
2020
"gatsby-core-utils": "^1.9.0-next.0",
2121
"gatsby-plugin-utils": "^0.8.0-next.1",

packages/gatsby-source-contentful/src/fetch.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ module.exports = async function contentfulFetch({
1919
host: pluginConfig.get(`host`),
2020
environment: pluginConfig.get(`environment`),
2121
proxy: pluginConfig.get(`proxy`),
22+
integration: `gatsby-source-contentful`,
2223
responseLogger: response => {
2324
function createMetadataLog(response) {
2425
if (process.env.gatsby_log_level === `verbose`) {

0 commit comments

Comments
 (0)