text: require("dotenv").config({
    path: `.env.${process.env.NODE_ENV}`
  });
  
  module.exports = {
    siteMetadata: {
      title: "@mcclowes"
    },
    plugins: [
      "gatsby-plugin-react-helmet",
      {
        resolve: `gatsby-source-contentful`,
        options: {
          spaceId: process.env.CONTENTFUL_SPACE_ID,
          accessToken: process.env.CONTENTFUL_ACCESS_TOKEN,
          host: `preview.contentful.com`
        }
      },
      {
        resolve: `gatsby-plugin-page-creator`,
        options: {
          path: `${__dirname}/src/pages`,
          ignore: {
            patterns: [`**/csx.(js|ts)?(x)`]
          }
        }
      }
    ]
  };
  