text: require("dotenv").config({
    path: `.env.${process.env.NODE_ENV}`,
  });
  
  module.exports = {
    siteMetadata: {
      // edit below
      title: `Rage Against the Supremes Band`,
      author: `Corey Smaller`,
      description: `party and wedding band in salt lake city UT`,
      siteUrl: `https://www.ratsband.com`,
      social: {
        twitter: `ratsband`,
        instagram: `ratsband`
      },
    },
    plugins: [
      {
        resolve: `gatsby-plugin-netlify-cms`,
        options: {
          modulePath: `${__dirname}/src/cms/cms.js`,
        },
      },
      `gatsby-plugin-sass`,
      `gatsby-plugin-styled-components`,
      `gatsby-transformer-remark`,
      `gatsby-transformer-sharp`,
      `gatsby-plugin-sharp`,
      `gatsby-plugin-offline`,
      `gatsby-plugin-react-helmet`,
      `gatsby-plugin-typescript`,
      `gatsby-plugin-feed-mdx`,
      // {
      //   resolve: "gatsby-plugin-local-search",
      //   options: {
      //     name: "blog",
      //     engine: "flexsearch",
      //     engineOptions: {
      //       encode: "icase",
      //       tokenize: "forward",
      //       async: false,
      //     },
      //     query: `
      //       {
      //         allMdx {
      //           nodes {
      //             id
      //             fields { slug }
      //             excerpt
      //             rawBody
      //             frontmatter {
      //               title
      //               description
      //               date(formatString: "MMMM DD, YYYY")
      //             }
      //           }
      //         }
      //       }
      //     `,
      //     ref: "id",
      //     index: ["title", "rawBody"],
      //     store: ["id", "slug", "date", "title", "excerpt", "description"],
      //     normalizer: ({ data }) =>
      //       data.allMdx.nodes.map(node => ({
      //         id: node.id,
      //         slug: node.fields.slug,
      //         rawBody: node.rawBody,
      //         excerpt: node.excerpt,
      //         title: node.frontmatter.title,
      //         description: node.frontmatter.description,
      //         date: node.frontmatter.date,
      //       })),
      //   },
      // },
      `gatsby-plugin-feed-mdx`,
      `gatsby-plugin-root-import`,
      {
        resolve: `gatsby-source-filesystem`,
        options: {
          name: `markdown-pages`,
          path: `${__dirname}/content/blog`,
        },
      },
      `gatsby-transformer-remark`,
      {
        resolve: `gatsby-source-filesystem`,
        options: {
          path: `${__dirname}/content/assets`,
          name: `assets`,
        },
      },
      {
        resolve: `gatsby-plugin-mdx`,
        options: {
          extensions: [".mdx", ".md"],
          gatsbyRemarkPlugins: [
            {
              resolve: `gatsby-remark-images`,
              options: {
                maxWidth: 590,
              },
            },
            {
              resolve: `gatsby-remark-responsive-iframe`,
              options: {
                wrapperStyle: `margin-bottom: 1.0725rem`,
              },
            },
            {
              resolve: `gatsby-remark-vscode`,
            },
            {
              resolve: `gatsby-remark-copy-linked-files`,
            },
            {
              resolve: `gatsby-remark-smartypants`,
            },
          ],
          plugins: [`gatsby-remark-images`],
        },
      },
      {
        resolve: `gatsby-plugin-google-analytics`,
        options: {
          // edit below
          // trackingId: `ADD YOUR TRACKING ID HERE`,
        },
      },
      {
        resolve: `gatsby-plugin-manifest`,
        options: {
          name: `Rats band`,
          short_name: `GatsbyJS`,
          start_url: `/`,
          background_color: `#ffffff`,
          theme_color: `#663399`,
          display: `minimal-ui`,
          // edit below
          icon: `content/assets/logo_transparent.png`,
        },
      },
      {
        resolve: `gatsby-plugin-typography`,
        options: {
          pathToConfigModule: `src/utils/typography`,
        },
      },
    ],
  }
  