File tree Expand file tree Collapse file tree 2 files changed +20
-16
lines changed Expand file tree Collapse file tree 2 files changed +20
-16
lines changed Original file line number Diff line number Diff line change @@ -536,21 +536,25 @@ function useDev({
536
536
537
537
const processEnv = await gatherProcessEnv ( ) ;
538
538
539
- const backgroundWorker = new BackgroundWorker ( fullPath , {
540
- projectConfig : config ,
541
- dependencies,
542
- env : {
543
- ...processEnv ,
544
- TRIGGER_API_URL : apiUrl ,
545
- TRIGGER_SECRET_KEY : apiKey ,
546
- ...( environmentVariablesResponse . success
547
- ? environmentVariablesResponse . data . variables
548
- : { } ) ,
539
+ const backgroundWorker = new BackgroundWorker (
540
+ fullPath ,
541
+ {
542
+ projectConfig : config ,
543
+ dependencies,
544
+ env : {
545
+ ...processEnv ,
546
+ TRIGGER_API_URL : apiUrl ,
547
+ TRIGGER_SECRET_KEY : apiKey ,
548
+ ...( environmentVariablesResponse . success
549
+ ? environmentVariablesResponse . data . variables
550
+ : { } ) ,
551
+ } ,
552
+ debuggerOn,
553
+ debugOtel,
554
+ resolveEnvVariables : createResolveEnvironmentVariablesFunction ( configModule ) ,
549
555
} ,
550
- debuggerOn,
551
- debugOtel,
552
- resolveEnvVariables : createResolveEnvironmentVariablesFunction ( configModule ) ,
553
- } ) ;
556
+ environmentClient
557
+ ) ;
554
558
555
559
try {
556
560
await backgroundWorker . initialize ( ) ;
Original file line number Diff line number Diff line change @@ -46,7 +46,6 @@ import {
46
46
UncaughtExceptionError ,
47
47
UnexpectedExitError ,
48
48
} from "../common/errors.js" ;
49
- import { env } from "node:process" ;
50
49
import { CliApiClient } from "../../apiClient.js" ;
51
50
52
51
export type CurrentWorkers = BackgroundWorkerCoordinator [ "currentWorkers" ] ;
@@ -290,7 +289,8 @@ export class BackgroundWorker {
290
289
291
290
constructor (
292
291
public path : string ,
293
- public params : BackgroundWorkerParams
292
+ public params : BackgroundWorkerParams ,
293
+ private apiClient : CliApiClient
294
294
) { }
295
295
296
296
close ( ) {
You can’t perform that action at this time.
0 commit comments