text: require("dotenv").config()
  
  const queries = require("./src/utils/algoliaQuerys")
  
  module.exports = {
    siteMetadata: {
      title: `My Blog`,
      description: `A blog about frontend development and other cool stuff.`,
      position: 'FrontEnd Developer',
      author: `Ítalo Lima`,
      siteUrl: 'https://italolima.com'
    },
    plugins: [
      `gatsby-plugin-styled-components`,
      `gatsby-plugin-react-helmet`,
      {
        resolve: 'gatsby-source-filesystem',
        options: {
          path: `${__dirname}/static/assets/img`,
          name: 'uploads',
        },
      },
      {
        resolve: `gatsby-source-filesystem`,
        options: {
          name: `images`,
          path: `${__dirname}/src/images`,
        },
      },
      {
        resolve: `gatsby-source-filesystem`,
        options: {
          name: `post`,
          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, // default: 1000
          enablePartialUpdates: true,
        },
      },
      {
        resolve: `gatsby-plugin-manifest`,
        options: {
          name: `gatsby-starter-default`,
          short_name: `starter`,
          start_url: `/`,
          background_color: `#663399`,
          theme_color: `#663399`,
          display: `minimal-ui`,
          //icon: `src/images/gatsby-icon.png`, // This path is relative to the root of the site.
        },
      },
      `gatsby-plugin-sitemap`,
      `gatsby-plugin-netlify-cms`
      // this (optional) plugin enables Progressive Web App + Offline functionality
      // To learn more, visit: https://gatsby.dev/offline
      // `gatsby-plugin-offline`,
    ],
  }
  