Skip to content

Commit

Permalink
chore(gatsby): Add env log for build and remove incorrect log for fun…
Browse files Browse the repository at this point in the history
…ctions (gatsbyjs#36462)

Add env log for build and remove incorrect log for functions
  • Loading branch information
imjoshin authored Aug 25, 2022
1 parent b08336b commit 613729d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/gatsby/src/commands/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
Expand Down

0 comments on commit 613729d

Please sign in to comment.