Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable contributors lookup #424

Merged
merged 1 commit into from
Oct 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading