text: /* eslint-disable import/no-extraneous-dependencies */
  require('dotenv').config({
    path: `.env.${process.env.NODE_ENV}`,
  })
  
  module.exports = {
    siteMetadata: {
      title: 'Gatsby Contentstack starter',
    },
    plugins: [
      'gatsby-plugin-react-helmet',
  
      {
        resolve: 'gatsby-plugin-manifest',
        options: {
          name: 'gatsby-starter-contentstack',
          short_name: 'starter',
          start_url: '/',
          background_color: '#663399',
          theme_color: '#663399',
          display: 'minimal-ui',
          icon: 'src/images/contentstack-logo.png', // This path is relative to the root of the site.
        },
      },
      // {
      //   resolve: 'gatsby-source-filesystem',
      //   options: {
      //     path: `${__dirname}/src/`,
      //   },
      // },
      // `gatsby-plugin-sharp`, `gatsby-transformer-sharp`,
      {
        resolve: 'gatsby-source-contentstack',
        options: {
          api_key: process.env.CONTENTSTACK_API_KEY,
          delivery_token: process.env.CONTENTSTACK_DELIVERY_TOKEN,
          environment: process.env.CONTENTSTACK_ENVIRONMENT,
          cdn: process.env.CONTENTSTACK_CDN ? process.env.CONTENTSTACK_CDN : '',
          // Optional: expediteBuild set this to either true or false
          expediteBuild: true,
          // Optional: Specify true if you want to generate custom schema
          enableSchemaGeneration: true,
          // Optional: Specify a different prefix for types.
          // This is useful in cases where you have multiple instances
          // of the plugin to be connected to different stacks.
          type_prefix: 'Contentstack', // (default)
        },
      },
    ],
  }
  