Skip to content
Discussion options

You must be logged in to vote

You'll want to do something like shown here: https://www.gatsbyjs.com/docs/reference/graphql-data-layer/schema-customization/#feeding-remote-images-into-gatsby-image

gatsby-config.js:

require("dotenv").config()

module.exports = {
  siteMetadata: {
    title: "discussion-30413",
  },
  plugins: [
    {
      resolve: `gatsby-source-filesystem`,
      options: {
        path: "src",
      },
    },
    {
      resolve: "gatsby-source-graphql",
      options: {
        typeName: "GitHub",
        fieldName: "github",
        url: "https://api.github.com/graphql",
        headers: {
          Authorization: `bearer ${process.env.GITHUB_TOKEN}`
        }
      }
    }
  ],
};

gatsby-node.js:

c…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Soneji
Comment options

Answer selected by Soneji
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants