text: const rssConfig = require('./rss-feed-config')
  const isProduction = process.env.NODE_ENV === 'production'
  
  module.exports = {
    siteMetadata: {
      siteUrl: 'https://www.brandonandchris.com',
      title: 'BC Adventures travel blog',
      description: 'A blog of our round the world trip!',
    },
    plugins: [
      'gatsby-plugin-react-helmet',
      rssConfig,
      'gatsby-plugin-sass',
      {
        // keep as first gatsby-source-filesystem plugin for gatsby image support
        resolve: 'gatsby-source-filesystem',
        options: {
          path: `${__dirname}/static/img`,
          name: 'uploads',
        },
      },
      {
        resolve: 'gatsby-source-filesystem',
        options: {
          path: `${__dirname}/src/pages`,
          name: 'pages',
        },
      },
      {
        resolve: 'gatsby-source-filesystem',
        options: {
          path: `${__dirname}/src/img`,
          name: 'images',
        },
      },
      'gatsby-plugin-sharp',
      'gatsby-transformer-sharp',
      {
        resolve: 'gatsby-transformer-remark',
        options: {
          plugins: [
            {
              resolve: 'gatsby-remark-relative-images',
              options: {
                name: 'uploads',
              },
            },
            {
              resolve: 'gatsby-remark-images',
              options: {
                // It's important to specify the maxWidth (in pixels) of
                // the content container as this plugin uses this as the
                // base for generating different widths of each image.
                maxWidth: 2048,
                showCaptions: true,
              },
            },
            {
              resolve: 'gatsby-remark-images-cloudinary',
              options: {
                // It's important to specify the maxWidth (in pixels) of
                // the content container as this plugin uses this as the
                // base for generating different widths of each image.
                maxWidth: 1048,
                showCaptions: true,
                disabled: !isProduction,
              },
            },
            {
              resolve: 'gatsby-remark-video',
              options: {
                height: 'auto',
                preload: 'auto',
                muted: true,
                autoplay: true,
                playsinline: true,
                controls: false,
                loop: true,
              },
            },
            {
              resolve: 'gatsby-remark-external-links',
              options: {
                target: '_blank',
                rel: 'noopener noreferrer',
              },
            },
            {
              resolve: 'gatsby-remark-copy-linked-files',
              options: {
                destinationDir: 'static',
              },
            },
          ],
        },
      },
      {
        resolve: `gatsby-plugin-google-analytics`,
        options: {
          // The property ID; the tracking code won't be generated without it
          trackingId: 'UA-37923235-3',
          anonymize: true,
          respectDNT: false,
        },
      },
      {
        resolve: 'gatsby-plugin-netlify-cache',
        options: {
          cachePublic: false,
        },
      },
      {
        resolve: 'gatsby-plugin-netlify-cms',
        options: {
          modulePath: `${__dirname}/src/cms/cms.js`,
        },
      },
      {
        resolve: 'gatsby-plugin-purgecss', // purges all unused/unreferenced css rules
        options: {
          develop: true, // Activates purging in npm run develop
          purgeOnly: ['/all.sass'], // applies purging only on the bulma css file
        },
      }, // must be after other CSS plugins
      'gatsby-plugin-netlify', // make sure to keep it last in the array
    ],
  }
  