regexper-static/gatsby-config.js

25 lines
571 B
JavaScript
Raw Normal View History

const buildId = [
process.env.CI_COMMIT_REF_SLUG || 'prerelese',
(process.env.CI_COMMIT_SHA || 'gitsha').slice(0, 7)
].join('-');
const banner = (process.env.NODE_ENV === 'production') ? false : (process.env.NODE_ENV || 'development');
module.exports = {
siteMetadata: {
buildId,
banner
},
plugins: [
2019-01-03 12:08:47 +00:00
'gatsby-plugin-react-helmet',
2019-01-03 23:29:42 +00:00
'gatsby-plugin-postcss',
{
resolve: 'gatsby-plugin-google-analytics',
options: {
trackingId: process.env.GA_PROPERTY,
anonymize: true,
respectDNT: true
}
}
]
};