text: require('dotenv').config({
    path: `.env`,
  });
  const config = require('./config/website');
  
  const pathPrefix = config.pathPrefix === '/' ? '' : config.pathPrefix;
  
  module.exports = {
    /* General Information */
    pathPrefix: config.pathPrefix,
    siteMetadata: {
      siteUrl: config.siteUrl + pathPrefix,
    },
    /* Plugins */
    plugins: [
      'gatsby-plugin-react-helmet',
      'gatsby-plugin-emotion',
      {
        resolve: 'gatsby-source-prismic',
        options: {
          repositoryName: 'alexandar-gligorijevich',
          accessToken: `${process.env.API_KEY}`,
          linkResolver: ({ node, key, value }) => doc => `/${doc.uid}`,
          htmlSerializer: ({ node, key, value }) => (type, element, content, children) => {
            // Your HTML serializer
          },
        },
      },
      'gatsby-transformer-sharp',
      'gatsby-plugin-sharp',
      'gatsby-plugin-lodash',
      {
        resolve: 'gatsby-plugin-typography',
        options: {
          pathToConfigModule: 'config/typography.js',
        },
      },
      'gatsby-plugin-sitemap',
      {
        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: 'fullscreen',
          icons: [
            {
              src: '/favicons/android-chrome-192x192.png',
              sizes: '192x192',
              type: 'image/png',
            },
            {
              src: '/favicons/android-chrome-512x512.png',
              sizes: '512x512',
              type: 'image/png',
            },
          ],
        },
      },
      /* Must be placed at the end */
      'gatsby-plugin-offline',
      'gatsby-plugin-netlify',
    ],
  };
  