text: require('dotenv').config()
  
  const queries = require("./src/utils/algolia_queries")
  
  module.exports = {
    siteMetadata: {
      title: `Pedrinho`,
      position: `Desenvolvedor Frontend`,
      description: `Pedrinho é um cara muito legal que faz coisas legais para pessoas legais`,
      author: `@pedrinho`,
      siteUrl: `https://ptd.com.br`,
    },
    plugins: [
      `gatsby-plugin-sitemap`,
      `gatsby-plugin-transition-link`,
      `gatsby-plugin-styled-components`,
      `gatsby-plugin-react-helmet`,
      `gatsby-plugin-netlify-cms`,
      //Pra funcionar precisa sempre ser o primeiro :D
      {
        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: {
          // CommonMark mode (default: true)
          commonmark: true,
          // Footnotes mode (default: true)
          footnotes: true,
          // Pedantic mode (default: true)
          pedantic: true,
          // GitHub Flavored Markdown mode (default: true)
          gfm: true,
          // Plugins configs
          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, // default: 1000
          enablePartialUpdates: true,
        },
      },
      {
        resolve: `gatsby-plugin-manifest`,
        options: {
          name: `Pedrinho Team Dev`,
          short_name: `PTD`,
          start_url: `/`,
          background_color: `var(--background)`,
          theme_color: `var(--background)`,
          display: `minimal-ui`,
          icon: `src/images/gatsby-icon.png`, // This path is relative to the root of the site.
        },
      },
      // this (optional) plugin enables Progressive Web App + Offline functionality
      // To learn more, visit: https://gatsby.dev/offline
      `gatsby-plugin-offline`,
    ],
  }
  