From 15c8f207fc5bcde5b77eb745c9cff96fd64d81ba Mon Sep 17 00:00:00 2001 From: solimant Date: Sat, 5 Oct 2024 13:51:49 -0400 Subject: [PATCH] Disable contributors lookup --- gatsby-config.js | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/gatsby-config.js b/gatsby-config.js index 138664e3..c41f7f4f 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",