Skip to content

Commit 9ce3f79

Browse files
fix: Added dev.vars into dotEnv file (#1340)
* Added dev.vars into dotEnv file * Added changes * Update yellow-knives-attack.md --------- Co-authored-by: Eric Allam <eallam@icloud.com>
1 parent 04645e8 commit 9ce3f79

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/yellow-knives-attack.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+
Add the "dev.vars" file to the list of auto-loaded dotenv files in the dev CLI command

packages/cli-v3/src/utilities/dotEnv.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import dotenv from "dotenv";
22
import { resolve } from "node:path";
33
import { env } from "std-env";
44

5-
const ENVVAR_FILES = [".env", ".env.development", ".env.local", ".env.development.local"];
5+
const ENVVAR_FILES = [".env", ".env.development", ".env.local", ".env.development.local", "dev.vars"];
66

77
export function resolveDotEnvVars(cwd?: string, envFile?: string) {
88
const result: { [key: string]: string } = {};

0 commit comments

Comments
 (0)