Skip to content

Commit 9bcb8cb

Browse files
committed
Ignore the DEBUG env var when deploying
1 parent 2374f8e commit 9bcb8cb

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/strange-ghosts-matter.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"trigger.dev": patch
3+
---
4+
5+
Added DEBUG to the ignored env vars

packages/cli-v3/src/commands/deploy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1382,7 +1382,7 @@ async function findAllEnvironmentVariableReferencesInFile(filePath: string) {
13821382
return findAllEnvironmentVariableReferences(fileContents);
13831383
}
13841384

1385-
const IGNORED_ENV_VARS = ["NODE_ENV", "SHELL", "HOME", "PWD", "LOGNAME", "USER", "PATH"];
1385+
const IGNORED_ENV_VARS = ["NODE_ENV", "SHELL", "HOME", "PWD", "LOGNAME", "USER", "PATH", "DEBUG"];
13861386

13871387
function findAllEnvironmentVariableReferences(code: string): string[] {
13881388
const regex = /\bprocess\.env\.([a-zA-Z_][a-zA-Z0-9_]*)\b/g;

0 commit comments

Comments
 (0)