text: /**
   * Configure your Gatsby site with this file.
   *
   * See: https://www.gatsbyjs.org/docs/gatsby-config/
   */
  
  module.exports = {
    siteMetadata: {
      title: "WebDev Portfolio",
      description: "This is WebDev Portfolio Site",
      author: "@webdev",
      twitterUsername: "@john_smilga",
      image: "/twitter-img.png",
      siteUrl: "https://gatsby-strapi-portfolio-2021.netlify.app/",
    },
    plugins: [
      `gatsby-transformer-sharp`,
      `gatsby-plugin-sharp`,
      `gatsby-plugin-react-helmet`,
      `gatsby-plugin-sitemap`,
      {
        resolve: "gatsby-plugin-offline",
        options: {
          workboxConfig: {
            runtimeCaching: [
              {
                // Use cacheFirst since these don't need to be revalidated (same RegExp
                // and same reason as above)
                urlPattern: /(\.js$|\.css$|[^:]static\/)/,
                handler: "CacheFirst",
              },
              {
                // page-data.json files, static query results and app-data.json
                // are not content hashed
                urlPattern: /^https?:.*\/page-data\/.*\.json/,
                handler: "StaleWhileRevalidate",
              },
              {
                // Add runtime caching of various other page resources
                urlPattern: /^https?:.*\.(png|jpg|jpeg|webp|svg|gif|tiff|js|woff|woff2|json|css)$/,
                handler: "StaleWhileRevalidate",
              },
              {
                // Google Fonts CSS (doesn't end in .css so we need to specify it)
                urlPattern: /^https?:\/\/fonts\.googleapis\.com\/css/,
                handler: "StaleWhileRevalidate",
              },
            ],
          },
        },
      },
      {
        resolve: `gatsby-source-filesystem`,
        options: {
          name: `assets`,
          path: `${__dirname}/src/assets/`,
        },
      },
      {
        resolve: `gatsby-source-strapi`,
        options: {
          apiURL: `http://localhost:1337`,
          queryLimit: 1000, // Defaults to 100
          //   contentTypes : `jobs`, `projects`, `blogs`,
          //   singleType : `about`
          //  ONLY ADD TO ARRAY IF YOU HAVE DATA IN STRAPI !!!!
          collectionTypes: [`jobs`, `projects`, `blogs`],
          singleTypes: [`about`],
        },
      },
      {
        resolve: `gatsby-plugin-webfonts`,
        options: {
          fonts: {
            google: [
              {
                family: "Roboto",
                variants: ["400", "700"],
              },
              { family: "Open Sans" },
            ],
          },
        },
      },
    ],
  }
  