diff --git a/packages/gatsby/src/commands/build.ts b/packages/gatsby/src/commands/build.ts index b8783d6db4c27..b70e72e2c5729 100644 --- a/packages/gatsby/src/commands/build.ts +++ b/packages/gatsby/src/commands/build.ts @@ -87,6 +87,8 @@ module.exports = async function build( ) } + report.verbose(`Running build in "${process.env.NODE_ENV}" environment`) + await updateInternalSiteMetadata({ name: program.sitePackageJson.name, sitePath: program.directory, diff --git a/packages/gatsby/src/internal-plugins/functions/gatsby-node.ts b/packages/gatsby/src/internal-plugins/functions/gatsby-node.ts index 6f58044151543..49bf730cd3e99 100644 --- a/packages/gatsby/src/internal-plugins/functions/gatsby-node.ts +++ b/packages/gatsby/src/internal-plugins/functions/gatsby-node.ts @@ -389,7 +389,6 @@ export async function onPreBootstrap({ program: { directory: siteDirectoryPath }, } = store.getState() - reporter.verbose(`Attaching functions to development server`) const compiledFunctionsDir = path.join( siteDirectoryPath, `.cache`,