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

Add env log for build and remove incorrect log for functions

(cherry picked from commit 613729d)

Co-authored-by: Josh Johnson <jcjohnson77@gmail.com>
  • Loading branch information
ViCo0TeCH and imjoshin committed Aug 25, 2022
1 parent 41de1f0 commit 4dcdeb1
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
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
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 4dcdeb1

Please sign in to comment.