text: require("dotenv").config({
    path: `.env.${process.env.NODE_ENV}`,
  })
  
  module.exports = {
    siteMetadata: {
      title: `Coffea Shop`,
      description: `Entregamos sensaciones directamente a la puerta de tu casa!`,
      author: `@grandas`,
      siteUrl: `https://coffeashop.netlify.com/`,
    },
    plugins: [
      `gatsby-plugin-react-helmet`,
      {
        resolve: `gatsby-source-filesystem`,
        options: {
          name: `images`,
          path: `${__dirname}/src/images`,
        },
      },
      `gatsby-transformer-sharp`,
  
      `gatsby-plugin-sharp`,
      {
        resolve: `gatsby-plugin-manifest`,
        options: {
          name: `coffeaShop`,
          short_name: `coffeaShop`,
          start_url: `/`,
          lang: `es`,
          background_color: `#663399`,
          theme_color: `#663399`,
          display: `standalone`,
          icon: `src/images/coffeaLogo.svg`, // This path is relative to the root of the site.
        },
      },
      {
        resolve: "gatsby-plugin-snipcart",
        options: {
          apiKey: process.env.SNIPCART_KEY,
          autopop: true,
        },
      },
      {
        resolve: `gatsby-source-contentful`,
        options: {
          spaceId: process.env.CONTENTFUL_SPACE_ID,
          // Learn about environment variables: https://gatsby.dev/env-vars
          accessToken: process.env.CONTENTFUL_ACCESS_TOKEN,
          host: `preview.contentful.com`,
        },
      },
      `gatsby-plugin-offline`,
      // this (optional) plugin enables Progressive Web App + Offline functionality
      // To learn more, visit: https://gatsby.dev/offline
      // `gatsby-plugin-offline`,
    ],
  }
  