text: require("dotenv").config({
    path: `.env.${process.env.NODE_ENV}`,
  })
  
  module.exports = {
    siteMetadata: {
      title: `Jetpackgone`,
      description: `Portfolio`,
      author: `jetpackgone`
    },
    plugins: [
      {
        resolve: `gatsby-source-filesystem`,
        options: {
          name: `src`,
          path: `${__dirname}/src/`,
        },
      },
      `gatsby-transformer-remark`,
      `gatsby-plugin-emotion`,
      {
        resolve: `gatsby-plugin-typography`,
        options: {
          pathToConfigModule: `src/utils/typography`,
        },
      },
      `gatsby-plugin-react-helmet`,
      `gatsby-plugin-fontawesome-css`,
      {
        resolve: 'gatsby-source-github',
        options: {
          headers: {
            Authorization: `Bearer ${process.env.GATSBY_GITHUB_TOKEN}`,
          },
          queries: [
            `{
              viewer {
                repositories(first: 100, affiliations: [OWNER, COLLABORATOR, ORGANIZATION_MEMBER]) {
                  totalCount
                  nodes{
                    name
                    description
                    createdAt
                    pushedAt
                    isPrivate
                    openGraphImageUrl,
                    primaryLanguage {
                      name
                      color
                    }
                    url
                  }
                }
               }
              }`,
          ],
        },
      },
    ],
  }