diff --git a/src/node/config.ts b/src/node/config.ts index 03cf4c2f3b0ba7..eebd7950249bd5 100644 --- a/src/node/config.ts +++ b/src/node/config.ts @@ -429,7 +429,7 @@ function loadEnv(mode: string, root: string): Record { const path = lookupFile(root, [file], true) if (path) { const result = dotenv.config({ - debug: !!process.env.DEBUG, + debug: !!process.env.DEBUG || undefined, path }) if (result.error) {