text: require("dotenv").config({
    path: `.env.${process.env.NODE_ENV}`,
  })
  
  module.exports = {
    siteMetadata: {
      title: `Suivi des chantiers de la DBR`,
      description: `Revue des chantiers de la DBR`,
      author: `@DBR - Région Normandie`,
    },
    plugins: [
      `gatsby-plugin-react-helmet`,
      `gatsby-plugin-image`,
      {
        resolve: `gatsby-source-filesystem`,
        options: {
          name: `images`,
          path: `${__dirname}/src/images`,
        },
      },
      `gatsby-transformer-sharp`,
      `gatsby-plugin-sharp`,
      {
        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-gatsby-cloud`,
      // this (optional) plugin enables Progressive Web App + Offline functionality
      // To learn more, visit: https://gatsby.dev/offline
      // `gatsby-plugin-offline`,
      {
        resolve: `gatsby-source-strapi`,
        options: {
          apiURL: process.env.API_URL,
          queryLimit: 1000, // Defaults to 100
          collectionTypes: [
            `chantier`,
            `commune`,
            "departement",
            "epci",
            "etape",
            "revue",
            "site",
            "budget",
          ],
          loginData: {
            identifier: process.env.API_EMAIL,
            password: process.env.API_PASSWORD,
          },
        },
      },
      `gatsby-plugin-material-ui`,
    ],
  }
  