diff --git a/.changeset/yellow-knives-attack.md b/.changeset/yellow-knives-attack.md new file mode 100644 index 0000000000..f69481ef0e --- /dev/null +++ b/.changeset/yellow-knives-attack.md @@ -0,0 +1,5 @@ +--- +"trigger.dev": patch +--- + +Add the "dev.vars" file to the list of auto-loaded dotenv files in the dev CLI command diff --git a/packages/cli-v3/src/utilities/dotEnv.ts b/packages/cli-v3/src/utilities/dotEnv.ts index 7b5bfbcf6d..f50b26f501 100644 --- a/packages/cli-v3/src/utilities/dotEnv.ts +++ b/packages/cli-v3/src/utilities/dotEnv.ts @@ -2,7 +2,7 @@ import dotenv from "dotenv"; import { resolve } from "node:path"; import { env } from "std-env"; -const ENVVAR_FILES = [".env", ".env.development", ".env.local", ".env.development.local"]; +const ENVVAR_FILES = [".env", ".env.development", ".env.local", ".env.development.local", "dev.vars"]; export function resolveDotEnvVars(cwd?: string, envFile?: string) { const result: { [key: string]: string } = {};