Skip to content

Commit

Permalink
Revert "Disable contributors lookup (#424)"
Browse files Browse the repository at this point in the history
This reverts commit f60fc57.
  • Loading branch information
solimant authored Oct 5, 2024
1 parent f60fc57 commit ef62c30
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
)
Expand All @@ -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",
Expand Down

0 comments on commit ef62c30

Please sign in to comment.