Skip to content

Commit 8feb4c8

Browse files
committed
fix dev command env file resolution
1 parent d53fcce commit 8feb4c8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • packages/cli-v3/src/commands

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,15 +266,15 @@ async function startDev(options: StartDevOptions) {
266266
displayedUpdateMessage = await updateTriggerPackages(options.cwd, { ...options }, true, true);
267267
}
268268

269-
const branch = getDevBranch({ specified: options.branch });
269+
const envVars = resolveLocalEnvVars(options.envFile);
270+
const branch = getDevBranch({ specified: options.branch ?? envVars.TRIGGER_DEV_BRANCH });
270271

271272
const removeLockFile = await createLockFile(options.cwd, branch);
272273

273274
let devInstance: DevSessionInstance | undefined;
274275

275276
printDevBanner(displayedUpdateMessage);
276277

277-
const envVars = resolveLocalEnvVars(options.envFile);
278278

279279
if (envVars.TRIGGER_PROJECT_REF) {
280280
logger.debug("Using project ref from env", { ref: envVars.TRIGGER_PROJECT_REF });

0 commit comments

Comments
 (0)