const packageJson = require('./package.json')

const activeEnv = process.env.NODE_ENV || 'development'

require('dotenv').config({
  path: `.env.${activeEnv}`,
})

const commit = process.env.TRAVIS_BUILD_NUMBER || ''

module.exports = {
  siteMetadata: {
    title: 'Rode Catering Beilstein',
    author: '<NAME>',
    description: 'Webseite des Partyservice Rode Catering in Beilstein.',
    version: `${packageJson.version}.${commit}`,
  },
  plugins: [
    'gatsby-plugin-react-helmet',
    {
      resolve: `gatsby-plugin-manifest`,
      options: {
        name: 'Rode Catering Beilstein',
        short_name: 'rode-catering',
        start_url: '/',
        background_color: '#ffffff',
        theme_color: '#663399',
        display: 'standalone',
        icon: 'src/images/logo.png', // This path is relative to the root of the site.
      },
    },
    // 'gatsby-transformer-json',
    // {
    //   resolve: `gatsby-source-filesystem`,
    //   options: {
    //     name: 'data',
    //     path: `${__dirname}/src/data`,
    //   },
    // },
    'gatsby-plugin-sass',
    'gatsby-plugin-offline',
  ],
}
