text: /**
   * Configure your Gatsby site with this file.
   *
   * See: https://www.gatsbyjs.com/docs/gatsby-config/
   */
  require('dotenv').config({
    path: `.env.${process.env.NODE_ENV}`,
  })
  
  module.exports = {
    siteMetadata: {
      title: 'Gatsby Tutorial',
      description: 'Some random desk',
      author: '@johndoe',
      data: ['item 1', 'item 2'],
      person: { name: 'ongoo', age: 50 },
    },
    plugins: [
      `gatsby-plugin-styled-components`,
      `gatsby-plugin-image`,
      `gatsby-plugin-sharp`,
      `gatsby-transformer-sharp`, // Needed for dynamic images
      `gatsby-plugin-styled-components`,
      {
        resolve: `gatsby-source-filesystem`,
        options: {
          name: `images`,
          path: `${__dirname}/src/images/`,
        },
      },
      {
        resolve: `gatsby-source-filesystem`,
        options: {
          name: `posts`,
          path: `${__dirname}/src/posts/`,
        },
      },
      {
        resolve: `gatsby-source-contentful`,
        options: {
          spaceId: `80oqujzr1m6d`,
          // Learn about environment variables: https://gatsby.dev/env-vars
          // accessToken: process.env.CONTENTFUL_ACCESS_TOKEN,
          accessToken: process.env.ACCESS_TOKEN,
        },
      },
    ],
  }
  