text: require('dotenv').config({
    path: `.env`,
  })
  
  const prismicHtmlSerializer = require('./src/utils/prismic/htmlSerializer')
  const prismicLinkResolver = require('./src/utils/prismic/linkResolver')
  
  const website = require('./config/website')
  
  const pathPrefix = website.pathPrefix === '/' ? '' : website.pathPrefix
  console.log('API Key: ', process.env.API_KEY)
  
  module.exports = {
    /* General Information */
    pathPrefix: website.pathPrefix,
    siteMetadata: {
      siteUrl: website.url + pathPrefix, // For gatsby-plugin-sitemap
      pathPrefix,
      banner: website.logo,
      ogLanguage: website.ogLanguage,
      author: website.author,
      twitter: website.twitter,
      facebook: website.facebook,
    },
    /* Plugins */
    plugins: [
      'gatsby-plugin-react-helmet',
      'gatsby-plugin-typescript',
      'gatsby-plugin-emotion',
      'gatsby-plugin-catch-links',
      {
        resolve: 'gatsby-source-prismic',
        options: {
          repositoryName: 'paracelsusscans',
          accessToken: `${process.env.API_KEY}`,
          // Get the correct URLs in blog posts
          linkResolver: () => prismicLinkResolver,
          // PrismJS highlighting for labels and slices
          htmlSerializer: () => prismicHtmlSerializer,
        },
      },
      'gatsby-plugin-lodash',
      'gatsby-transformer-sharp',
      'gatsby-plugin-sharp',
      {
        resolve: 'gatsby-plugin-typography',
        options: {
          pathToConfigModule: 'config/typography.js',
        },
      },
      {
        resolve: 'gatsby-plugin-google-analytics',
        options: {
          trackingId: website.googleAnalyticsID,
        },
      },
      'gatsby-plugin-sitemap',
      'gatsby-plugin-sass',
      {
        resolve: 'gatsby-plugin-manifest',
        options: {
          name: website.title,
          short_name: website.titleAlt,
          description: website.description,
          start_url: '/',
          background_color: website.backgroundColor,
          theme_color: website.themeColor,
          display: 'standalone',
          icon: website.favicon,
        },
      },
      {
        resolve: 'gatsby-plugin-web-font-loader',
        options: {
          typekit: {
            id: process.env.TYPEKIT_ID,
          },
        },
      },
      // Must be placed at the end
      'gatsby-plugin-offline',
      'gatsby-plugin-netlify',
    ],
  }
  