text: /**
   * Configure your Gatsby site with this file.
   *
   * See: https://www.gatsbyjs.org/docs/gatsby-config/
   */
  
  module.exports = {
    /* Your site config here */
    siteMetadata: {
      title: "Caribbean Virus Tracker",
      titleTemplate: "%s · Tracking the Coronavirus outbreak in the Caribbean",
      description:
        "This website provides the Caribbean community with an overview of the ongoing COVID-19 pandemic throughout the Caribbean.",
      siteUrl: "https://caribbeanvirustracker.com/",
      image: "https://caribbeanvirustracker.com/cvt-image.png",
    },
    plugins: [
      "gatsby-plugin-react-helmet",
      "gatsby-plugin-anchor-links",
      "gatsby-plugin-sitemap",
      "gatsby-plugin-robots-txt",
      {
        resolve: "gatsby-source-filesystem",
        options: {
          name: "data",
          path: `${__dirname}/src/data/`,
        },
      },
      {
        resolve: "gatsby-transformer-csv",
        options: {
          colParser: {
            date: function(item, head, resultRow, row, colIdx) {
              var dateParts = item.split("/")
              var dateObject = new Date(
                +dateParts[2],
                dateParts[1] - 1,
                +dateParts[0]
              )
              return dateObject
            },
            location: "string",
            latitude: "number",
            longitude: "number",
            region: "string",
            iso_code: "string",
            total_cases_1: "number",
            total_cases_2: "number",
            new_cases_1: "number",
            new_cases_2: "number",
            total_deaths_1: "number",
            total_deaths_2: "number",
            new_deaths_1: "number",
            new_deaths_2: "number",
            recovered: "number",
            source_name_1: "string",
            source_url_1: "string",
            source_name_2: "string",
            source_url_2: "string",
          },
        },
      },
      {
        resolve: "gatsby-plugin-manifest",
        options: {
          name: "Caribbean Virus Tracker",
          short_name: "CaribbeanVirusTracker",
          start_url: "/",
          background_color: "#dfdcf2",
          theme_color: "#016a87",
          display: "standalone",
        },
      },
      {
        resolve: "gatsby-plugin-google-analytics",
        options: {
          trackingId: "UA-60061038-3",
          head: true,
        },
      },
      {
        resolve: "gatsby-plugin-react-leaflet",
        options: {
          linkStyles: true,
        },
      },
    ],
  }
  