text: /**
   * Configure your Gatsby site with this file.
   *
   * See: https://www.gatsbyjs.org/docs/gatsby-config/
   */
  
  const activeEnv =
    process.env.GATSBY_ACTIVE_ENV || process.env.NODE_ENV || "development"
  console.log(`Using environment config: '${activeEnv}'`)
  require("dotenv").config({
    path: `.env.${activeEnv}`,
  })
  
  
  module.exports = {
    siteMetadata: {
      title: "WebDev Portfolio",
      description: "This is WebDev Portfolio Site",
      author: "@webdev",
      twitterUsername: "@john_smilga",
      image: "/twitter-img.png",
      siteUrl: "https://testing-strapi-gatsby-build.netlify.app",
    },
    plugins: [
      `gatsby-transformer-sharp`,
      `gatsby-plugin-sharp`,
      `gatsby-plugin-react-helmet`,
      `gatsby-plugin-arengu-forms`,
      `gatsby-plugin-sitemap`,
      {
        resolve: `gatsby-source-filesystem`,
        options: {
          name: `assets`,
          path: `${__dirname}/src/assets/`,
        },
      },
      {
        resolve: `gatsby-source-strapi`,
        options: {
          apiURL: `${process.env.STRAPI_API_URL}`,
          queryLimit: 1000, 
          contentTypes: [`jobs`, `projects`, `blogs`, `characters`, `locations`, `items`],
          singleTypes: [`about`],
          loginData: {
            identifier: `${process.env.STRAPI_USERNAME}`,
            password: `${process.env.STRAPI_PASSWORD}`,
          },
        },
      },
      {
        resolve: `gatsby-plugin-prefetch-google-fonts`,
        options: {
          fonts: [
            {
              family: `Roboto`,
              variants: [`400`, `700`],
            },
            {
              family: `Open Sans`,
            },
          ],
        },
      },
    ],
  }
  