Skip to content

Commit

Permalink
Merge pull request #254 from hashicorp/ds.tools-next-env
Browse files Browse the repository at this point in the history
fix: disable env file logging
  • Loading branch information
dstaley authored Dec 18, 2023
2 parents 029314d + a8eb6bb commit eb45923
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/green-forks-compare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@hashicorp/platform-tools': minor
---

Disable .env file logging
11 changes: 10 additions & 1 deletion packages/tools/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,16 @@ async function main() {
// Load env variables from .env using Next.js's utility
const env = loadEnvConfig(
process.cwd(),
process.env.NODE_ENV !== 'production'
process.env.NODE_ENV !== 'production',
{
info() {
// disable console.info calls for loaded env files
return
},
error(...args: any[]) {
console.error(...args)
},
}
)

const projectOptions = argv.project
Expand Down

0 comments on commit eb45923

Please sign in to comment.