File tree Expand file tree Collapse file tree 3 files changed +14
-1
lines changed
references/v3-catalog/src/trigger Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " trigger.dev " : patch
3
+ ---
4
+
5
+ Local env files like ` .env ` will now correctly override dev env vars configured in the dashboard
Original file line number Diff line number Diff line change @@ -319,9 +319,9 @@ export class BackgroundWorker {
319
319
const processOptions : TaskRunProcessOptions = {
320
320
payload,
321
321
env : {
322
- ...sanitizeEnvVars ( this . params . env ) ,
323
322
// TODO: this needs the stripEmptyValues stuff too
324
323
...sanitizeEnvVars ( payload . environment ?? { } ) ,
324
+ ...sanitizeEnvVars ( this . params . env ) ,
325
325
TRIGGER_WORKER_MANIFEST_PATH : this . workerManifestPath ,
326
326
} ,
327
327
serverWorker : this . serverWorker ,
Original file line number Diff line number Diff line change @@ -156,3 +156,11 @@ export const returnZeroCharacters = task({
156
156
} ;
157
157
} ,
158
158
} ) ;
159
+
160
+ export const testEnvVars = task ( {
161
+ id : "test-env-vars" ,
162
+ run : async ( payload : any ) => {
163
+ console . log ( `env.FOO: ${ process . env . FOO } ` ) ;
164
+ console . log ( `env.BAR: ${ process . env . BAR } ` ) ;
165
+ } ,
166
+ } ) ;
You can’t perform that action at this time.
0 commit comments