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 {
319319 const processOptions : TaskRunProcessOptions = {
320320 payload,
321321 env : {
322- ...sanitizeEnvVars ( this . params . env ) ,
323322 // TODO: this needs the stripEmptyValues stuff too
324323 ...sanitizeEnvVars ( payload . environment ?? { } ) ,
324+ ...sanitizeEnvVars ( this . params . env ) ,
325325 TRIGGER_WORKER_MANIFEST_PATH : this . workerManifestPath ,
326326 } ,
327327 serverWorker : this . serverWorker ,
Original file line number Diff line number Diff line change @@ -156,3 +156,11 @@ export const returnZeroCharacters = task({
156156 } ;
157157 } ,
158158} ) ;
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