Skip to content

Commit 0ad7b83

Browse files
committed
fix merge
1 parent ef100ad commit 0ad7b83

File tree

2 files changed

+20
-16
lines changed

2 files changed

+20
-16
lines changed

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

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -536,21 +536,25 @@ function useDev({
536536

537537
const processEnv = await gatherProcessEnv();
538538

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),
549555
},
550-
debuggerOn,
551-
debugOtel,
552-
resolveEnvVariables: createResolveEnvironmentVariablesFunction(configModule),
553-
});
556+
environmentClient
557+
);
554558

555559
try {
556560
await backgroundWorker.initialize();

packages/cli-v3/src/workers/dev/backgroundWorker.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ import {
4646
UncaughtExceptionError,
4747
UnexpectedExitError,
4848
} from "../common/errors.js";
49-
import { env } from "node:process";
5049
import { CliApiClient } from "../../apiClient.js";
5150

5251
export type CurrentWorkers = BackgroundWorkerCoordinator["currentWorkers"];
@@ -290,7 +289,8 @@ export class BackgroundWorker {
290289

291290
constructor(
292291
public path: string,
293-
public params: BackgroundWorkerParams
292+
public params: BackgroundWorkerParams,
293+
private apiClient: CliApiClient
294294
) {}
295295

296296
close() {

0 commit comments

Comments
 (0)