From 70b489f2a69440c6c1a6284b0ffe7709796a7789 Mon Sep 17 00:00:00 2001 From: Jeff Avallone Date: Tue, 8 Jan 2019 17:14:12 -0500 Subject: [PATCH] Adding support for setting the banner with an env var --- gatsby-config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gatsby-config.js b/gatsby-config.js index d490d09..7886472 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -2,9 +2,9 @@ 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') +const banner = process.env.BANNER || (process.env.NODE_ENV === 'production' ? false - : (process.env.NODE_ENV || 'development'); + : (process.env.NODE_ENV || 'development')); module.exports = { siteMetadata: {