diff --git a/packages/gatsby/src/commands/build.ts b/packages/gatsby/src/commands/build.ts index 8bdc30b3e87b6..30ab3b6f370de 100644 --- a/packages/gatsby/src/commands/build.ts +++ b/packages/gatsby/src/commands/build.ts @@ -46,7 +46,10 @@ import { import { updateSiteMetadata, isTruthy } from "gatsby-core-utils" module.exports = async function build(program: IBuildArgs): Promise { - report.setVerbose(isTruthy(process.env.VERBOSE) || program.verbose) + if (isTruthy(process.env.VERBOSE)) { + program.verbose = true + } + report.setVerbose(program.verbose) if (program.profile) { report.warn( diff --git a/packages/gatsby/src/commands/develop-process.ts b/packages/gatsby/src/commands/develop-process.ts index 42f138d8a2376..ea523cfb84251 100644 --- a/packages/gatsby/src/commands/develop-process.ts +++ b/packages/gatsby/src/commands/develop-process.ts @@ -80,7 +80,10 @@ const openDebuggerPort = (debugInfo: IDebugInfo): void => { } module.exports = async (program: IDevelopArgs): Promise => { - reporter.setVerbose(isTruthy(process.env.VERBOSE) || program.verbose) + if (isTruthy(process.env.VERBOSE)) { + program.verbose = true + } + reporter.setVerbose(program.verbose) if (program.debugInfo) { openDebuggerPort(program.debugInfo)