Adding support for setting the banner with an env var

This commit is contained in:
Jeff Avallone 2019-01-08 17:14:12 -05:00
parent aca30c8df3
commit 70b489f2a6

View File

@ -2,9 +2,9 @@ const buildId = [
process.env.CI_COMMIT_REF_SLUG || 'prerelese', process.env.CI_COMMIT_REF_SLUG || 'prerelese',
(process.env.CI_COMMIT_SHA || 'gitsha').slice(0, 7) (process.env.CI_COMMIT_SHA || 'gitsha').slice(0, 7)
].join('-'); ].join('-');
const banner = (process.env.NODE_ENV === 'production') const banner = process.env.BANNER || (process.env.NODE_ENV === 'production'
? false ? false
: (process.env.NODE_ENV || 'development'); : (process.env.NODE_ENV || 'development'));
module.exports = { module.exports = {
siteMetadata: { siteMetadata: {