Ignore the DEBUG env var when deploying

This commit is contained in:
Matt Aitken
2024-03-28 11:19:45 +00:00
parent 2374f8e8ac
commit 9bcb8cb42a
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"trigger.dev": patch
---
Added DEBUG to the ignored env vars
+1 -1
View File
@@ -1382,7 +1382,7 @@ async function findAllEnvironmentVariableReferencesInFile(filePath: string) {
return findAllEnvironmentVariableReferences(fileContents);
}
const IGNORED_ENV_VARS = ["NODE_ENV", "SHELL", "HOME", "PWD", "LOGNAME", "USER", "PATH"];
const IGNORED_ENV_VARS = ["NODE_ENV", "SHELL", "HOME", "PWD", "LOGNAME", "USER", "PATH", "DEBUG"];
function findAllEnvironmentVariableReferences(code: string): string[] {
const regex = /\bprocess\.env\.([a-zA-Z_][a-zA-Z0-9_]*)\b/g;