Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/gentle-mails-smoke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"trigger.dev": patch
---

Local env files like `.env` will now correctly override dev env vars configured in the dashboard
2 changes: 1 addition & 1 deletion packages/cli-v3/src/dev/backgroundWorker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -319,9 +319,9 @@ export class BackgroundWorker {
const processOptions: TaskRunProcessOptions = {
payload,
env: {
...sanitizeEnvVars(this.params.env),
// TODO: this needs the stripEmptyValues stuff too
...sanitizeEnvVars(payload.environment ?? {}),
...sanitizeEnvVars(this.params.env),
TRIGGER_WORKER_MANIFEST_PATH: this.workerManifestPath,
},
serverWorker: this.serverWorker,
Expand Down