text: const config = require('./data/SiteConfig')
  
  const pathPrefix = config.pathPrefix === '/' ? '' : config.pathPrefix
  
  module.exports = {
    pathPrefix: config.pathPrefix,
    siteMetadata: {
      siteUrl: config.siteUrl + pathPrefix,
      rssMetadata: {
        site_url: config.siteUrl + pathPrefix,
        feed_url: config.siteUrl + pathPrefix + config.siteRss,
        title: config.siteTitle,
        description: config.siteDescription,
        image_url: `${config.siteUrl + pathPrefix}/logos/logo-512.png`,
        author: config.userName,
        copyright: config.copyright
      }
    },
    plugins: [
      'gatsby-plugin-styled-components',
      'gatsby-plugin-react-helmet',
      {
        resolve: 'gatsby-source-wordpress',
        options: {
          // The base url to your WP site.
          baseUrl: 'getsbytest.dev7.artdev.arteries.hu',
          // baseUrl: 'wpgatsby.wtf',
          // WP.com sites set to true, WP.org set to false
          hostingWPCOM: false,
          // The protocol. This can be http or https.
          protocol: 'http',
          // Use 'Advanced Custom Fields' Wordpress plugin
          useACF: false,
          auth: {},
          // Set to true to debug endpoints on 'gatsby build'
          verboseOutput: true,
          excludedRoutes: [
            "/*/*/comments",
            "/yoast/**",
            "/oembed/*"
          ],
        }
      },
      // {
      //   resolve: 'gatsby-plugin-google-analytics',
      //   options: {
      //     trackingId: config.googleAnalyticsID,
      //   },
      // },
      {
        resolve: 'gatsby-plugin-nprogress',
        options: {
          color: config.themeColor
        }
      },
      'gatsby-plugin-sharp',
      'gatsby-plugin-catch-links',
      'gatsby-plugin-twitter',
      'gatsby-plugin-sitemap',
      {
        resolve: 'gatsby-plugin-manifest',
        options: {
          name: config.siteTitle,
          short_name: config.siteTitle,
          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'
    ]
  }
  