text: require(`dotenv`).config();
  
  const shouldAnalyseBundle = process.env.ANALYSE_BUNDLE;
  const googleAnalyticsTrackingId = process.env.GOOGLE_ANALYTICS_ID;
  
  module.exports = {
    siteMetadata: {
      // You can overwrite values here that are used for the SEO component
      // You can also add new values here to query them like usual
      // See all options: https://github.com/LekoArts/gatsby-themes/blob/master/themes/gatsby-theme-minimal-blog/gatsby-config.js
      siteTitle: `Faruk's Tech Blog`,
      siteTitleAlt: `Faruk's Tech Blog`,
      siteHeadline: `A tech blog generally about Frontend and Javascript`,
      siteUrl: `https://faruko.space/`,
      siteDescription: `A tech blog generally about Frontend and Javascript`,
      siteLanguage: `tr`,
      siteImage: `/banner.jpg`,
      author: `@bufgix_`,
    },
    plugins: [
      {
        resolve: `@lekoarts/gatsby-theme-minimal-blog`,
        // See the theme's README for all available options
        options: {
          navigation: [
            {
              title: `Blog`,
              slug: `/blog`,
            },
            {
              title: `About`,
              slug: `/about`,
            },
          ],
          externalLinks: [
            {
              name: `Twitter`,
              url: `https://twitter.com/bufgix_`,
            },
            {
              name: `Github`,
              url: `https://github.com/bufgix`,
            },
          ],
        },
      },
      {
        resolve: `gatsby-omni-font-loader`,
        options: {
          enableListener: true,
          preconnect: [`https://fonts.gstatic.com`],
          interval: 300,
          timeout: 30000,
          // If you plan on changing the font you'll also need to adjust the Theme UI config to edit the CSS
          // See: https://github.com/LekoArts/gatsby-themes/tree/master/examples/minimal-blog#changing-your-fonts
          web: [
            {
              name: `IBM Plex Sans`,
              file: `https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&display=swap`,
            },
          ],
        },
      },
      googleAnalyticsTrackingId && {
        resolve: `gatsby-plugin-google-analytics`,
        options: {
          trackingId: process.env.GOOGLE_ANALYTICS_ID,
        },
      },
      `gatsby-plugin-sitemap`,
      {
        resolve: `gatsby-plugin-manifest`,
        options: {
          name: `Faruk' Tech Blog`,
          short_name: `faruk-blog`,
          description: `A tech blog generally about Frontend and Javascript`,
          start_url: `/`,
          background_color: `#fff`,
          theme_color: `#6B46C1`,
          display: `standalone`,
          icons: [
            {
              src: `/android-chrome-192x192.png`,
              sizes: `192x192`,
              type: `image/png`,
            },
            {
              src: `/android-chrome-512x512.png`,
              sizes: `512x512`,
              type: `image/png`,
            },
          ],
        },
      },
      `gatsby-plugin-offline`,
      `gatsby-plugin-gatsby-cloud`,
      `gatsby-plugin-netlify`,
      {
        resolve: `gatsby-plugin-feed`,
        options: {
          query: `
            {
              site {
                siteMetadata {
                  title: siteTitle
                  description: siteDescription
                  siteUrl
                  site_url: siteUrl
                }
              }
            }
          `,
          feeds: [
            {
              serialize: ({ query: { site, allPost } }) =>
                allPost.nodes.map((post) => {
                  const url = site.siteMetadata.siteUrl + post.slug;
                  const content = `<p>${post.excerpt}</p><div style="margin-top: 50px; font-style: italic;"><strong><a href="${url}">Keep reading</a>.</strong></div><br /> <br />`;
  
                  return {
                    title: post.title,
                    date: post.date,
                    excerpt: post.excerpt,
                    url,
                    guid: url,
                    custom_elements: [{ "content:encoded": content }],
                  };
                }),
              query: `
                {
                  allPost(sort: { fields: date, order: DESC }) {
                    nodes {
                      title
                      date(formatString: "MMMM D, YYYY")
                      excerpt
                      slug
                    }
                  }
                }
              `,
              output: `rss.xml`,
              title: `Minimal Blog - @lekoarts/gatsby-theme-minimal-blog`,
            },
          ],
        },
      },
      shouldAnalyseBundle && {
        resolve: `gatsby-plugin-webpack-bundle-analyser-v2`,
        options: {
          analyzerMode: `static`,
          reportFilename: `_bundle.html`,
          openAnalyzer: false,
        },
      },
    ].filter(Boolean),
  };
  