From ef62c3095a82b99baf33904ebc8097a24f8681af Mon Sep 17 00:00:00 2001 From: solimant Date: Sat, 5 Oct 2024 14:33:01 -0400 Subject: [PATCH] Revert "Disable contributors lookup (#424)" This reverts commit f60fc57681e7bb61d5c718f1a664e11ac81ec7e3. --- gatsby-config.js | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/gatsby-config.js b/gatsby-config.js index c41f7f4f..138664e3 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -25,7 +25,7 @@ const gitInfo = GitUrlParse(process.env.GATSBY_SOURCE) ? `https://api.github.com/graphql` : `https://git.corp.adobe.com/api/graphql` */ -// const apiUrl = `https://api.github.com/graphql` +const apiUrl = `https://api.github.com/graphql` const patterns = process.env.GATSBY_SOURCE_PATTERNS.split(",").map((item) => item.trim() ) @@ -48,24 +48,24 @@ module.exports = { patterns: patterns, }, }, - // { - // resolve: `@adobe/gatsby-source-github-file-contributors`, - // options: { - // pages: { - // root: `${process.env.LOCAL_PROJECT_DIRECTORY}`, // root of the page paths (below) in the Github repo - // paths: [`${process.env.LOCAL_PROJECT_DIRECTORY}`], // relative path of the pages from the config - // extensions: ["md", "mdx"], // page extensions to filter for - // prefix: `${process.env.LOCAL_PROJECT_DIRECTORY}`, - // }, - // repo: { - // token: process.env.GATSBY_GIT_CORP_TOKEN, - // owner: gitInfo.owner, - // name: gitInfo.name, - // branch: process.env.GATSBY_SOURCE_BRANCH, - // api: apiUrl, - // }, - // }, - // }, + { + resolve: `@adobe/gatsby-source-github-file-contributors`, + options: { + pages: { + root: `${process.env.LOCAL_PROJECT_DIRECTORY}`, // root of the page paths (below) in the Github repo + paths: [`${process.env.LOCAL_PROJECT_DIRECTORY}`], // relative path of the pages from the config + extensions: ["md", "mdx"], // page extensions to filter for + prefix: `${process.env.LOCAL_PROJECT_DIRECTORY}`, + }, + repo: { + token: process.env.GATSBY_GIT_CORP_TOKEN, + owner: gitInfo.owner, + name: gitInfo.name, + branch: process.env.GATSBY_SOURCE_BRANCH, + api: apiUrl, + }, + }, + }, `gatsby-plugin-react-helmet`, { resolve: "@adobe/gatsby-add-launch-script",