[build-utils] Prefix debug message (#8378)

This PR adds `VERCEL_DEBUG_PREFIX` environment variable which lets you set a prefix for the debug logs.
This commit is contained in:
Steven
2022-08-24 14:50:20 -04:00
committed by GitHub
parent 1c14e945f9
commit 3856623785
9 changed files with 9 additions and 91 deletions

View File

@@ -1856,7 +1856,9 @@ export default class DevServer {
devCacheDir,
env: {
...envConfigs.runEnv,
VERCEL_BUILDER_DEBUG: this.output.debugEnabled ? '1' : undefined,
VERCEL_DEBUG_PREFIX: this.output.debugEnabled
? '[builder]'
: undefined,
},
buildEnv: { ...envConfigs.buildEnv },
},