Adding support for setting the banner with an env var
This commit is contained in:
parent
aca30c8df3
commit
70b489f2a6
@ -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: {
|
||||||
|
Loading…
Reference in New Issue
Block a user