Skip to content

Commit 4dcdeb1

Browse files
gatsbybotimjoshin
andauthored
chore(gatsby): Add env log for build and remove incorrect log for functions (#36462) (#36466)
Add env log for build and remove incorrect log for functions (cherry picked from commit 613729d) Co-authored-by: Josh Johnson <[email protected]>
1 parent 41de1f0 commit 4dcdeb1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/gatsby/src/commands/build.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ module.exports = async function build(
8787
)
8888
}
8989

90+
report.verbose(`Running build in "${process.env.NODE_ENV}" environment`)
91+
9092
await updateInternalSiteMetadata({
9193
name: program.sitePackageJson.name,
9294
sitePath: program.directory,

packages/gatsby/src/internal-plugins/functions/gatsby-node.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,6 @@ export async function onPreBootstrap({
389389
program: { directory: siteDirectoryPath },
390390
} = store.getState()
391391

392-
reporter.verbose(`Attaching functions to development server`)
393392
const compiledFunctionsDir = path.join(
394393
siteDirectoryPath,
395394
`.cache`,

0 commit comments

Comments
 (0)