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 (#36462)

Add env log for build and remove incorrect log for functions

(cherry picked from commit 613729d)
  • Loading branch information
imjoshin committed Aug 25, 2022
1 parent 41de1f0 commit ad6a04d
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 ad6a04d

Please sign in to comment.