text: const config = require('./config/SiteConfig');
  
  const pathPrefix = config.pathPrefix === '/' ? '' : config.pathPrefix;
  
  require('dotenv').config()
  
  module.exports = {
    pathPrefix: config.pathPrefix,
    siteMetadata: {
      siteUrl: config.siteUrl + pathPrefix,
    },
    plugins: [
      'gatsby-plugin-react-helmet',
      {
        resolve: 'gatsby-source-airtable',
        options: {
          apiKey: process.env.AIRTABLE_APIKEY,
          baseId: process.env.AIRTABLE_BASEID,
          tableName: 'Data',
          tableView: 'published',
          queryName: ''
        }
      },    
      {
        resolve: 'gatsby-transformer-remark',
        options: {
          plugins: [
            {
              resolve: 'gatsby-remark-images',
              options: {
                maxWidth: 1600,
                quality: 90,
                linkImagesToOriginal: false,
              },
            },
            {
              resolve: 'gatsby-remark-external-links',
              options: {
                target: '_blank',
                rel: 'nofollow noopener noreferrer',
              },
            },
            {
              resolve: 'gatsby-remark-responsive-iframe',
            },
          ],
        },
      },
      {
        resolve: 'gatsby-plugin-google-analytics',
        options: {
          trackingId: config.googleAnalyticsID,
        },
      },
      {
        resolve: 'gatsby-plugin-nprogress',
        options: {
          color: config.themeColor,
        },
      },
      'gatsby-plugin-sharp',
      'gatsby-transformer-sharp',
      'gatsby-plugin-sass',
      {
        resolve: 'gatsby-plugin-typography',
        options: {
          pathToConfigModule: 'src/utils/typography.jsx',
        },
      },
      'gatsby-plugin-catch-links',
      'gatsby-plugin-sitemap',
      'gatsby-plugin-react-next',
      {
        resolve: 'gatsby-plugin-manifest',
        options: {
          name: config.siteTitle,
          short_name: config.siteTitleAlt,
          description: config.siteDescription,
          start_url: config.pathPrefix,
          background_color: config.backgroundColor,
          theme_color: config.themeColor,
          display: 'minimal-ui',
          icons: [
            {
              src: '/logos/logo-192x192.png',
              sizes: '192x192',
              type: 'image/png',
            },
            {
              src: '/logos/logo-512x512.png',
              sizes: '512x512',
              type: 'image/png',
            },
          ],
        },
      },
      'gatsby-plugin-offline',
    ],
  };
  