text: require('dotenv').config();
  
  const queries = require('./src/utils/algolia_queries');
  
  module.exports = {
    siteMetadata: {
      title: `My blog`,
      position: `Backend Developer`,
      description: `A blog about backend development and other cool stuff.`,
      author: `@myblog`,
      siteUrl: `https://johndoe.com.br`
    },
    plugins: [
      `gatsby-plugin-styled-components`,
      `gatsby-plugin-transition-link`,
      `gatsby-plugin-react-helmet`,
      // needs to be the first to work with gatsby-remark-images
      {
        resolve: `gatsby-source-filesystem`,
        options: {
          name: `uploads`,
          path: `${__dirname}/static/assets/img`,
        },
      },
      {
        resolve: `gatsby-source-filesystem`,
        options: {
          name: `images`,
          path: `${__dirname}/src/images`,
        },
      },
      {
        resolve: `gatsby-source-filesystem`,
        options: {
          name: `posts`,
          path: `${__dirname}/posts`,
        },
      },
      {
        resolve: `gatsby-transformer-remark`,
        options: {
          plugins: [
            {
              resolve: `gatsby-remark-relative-images`,
              options: {
                name: "uploads"
              }
            },
            {
              resolve: `gatsby-remark-images`,
              options: {
                maxWidth: 960,
                linkImagesToOriginal: false,
              }
            },
            `gatsby-remark-lazy-load`,
            `gatsby-remark-prismjs`,
          ]
        },
      },
      `gatsby-transformer-sharp`,
      `gatsby-plugin-sharp`,
      {
        resolve: `gatsby-plugin-algolia-search`,
        options: {
          appId: process.env.GATSBY_ALGOLIA_APP_ID,
          apiKey: process.env.ALGOLIA_ADMIN_KEY,
          indexName: process.env.GATSBY_ALGOLIA_INDEX_NAME,
          queries,
          chunkSize: 10000,
          enablePartialUpdates: true,
        }
      },
      {
        resolve: `gatsby-plugin-manifest`,
        options: {
          name: `John Doe`,
          short_name: `John Doe`,
          start_url: `/`,
          background_color: `#16202c`,
          theme_color: `#16202c`,
          display: `minimal-ui`,
          icon: `src/images/gatsby-icon.png`, // This path is relative to the root of the site.
        },
      },
      `gatsby-plugin-sitemap`,
      `gatsby-plugin-offline`,
    ],
  }
  