fix merge

This commit is contained in:
nicktrn
2024-05-24 18:59:32 +01:00
parent ef100ad363
commit 0ad7b839df
2 changed files with 20 additions and 16 deletions
+18 -14
View File
@@ -536,21 +536,25 @@ function useDev({
const processEnv = await gatherProcessEnv();
const backgroundWorker = new BackgroundWorker(fullPath, {
projectConfig: config,
dependencies,
env: {
...processEnv,
TRIGGER_API_URL: apiUrl,
TRIGGER_SECRET_KEY: apiKey,
...(environmentVariablesResponse.success
? environmentVariablesResponse.data.variables
: {}),
const backgroundWorker = new BackgroundWorker(
fullPath,
{
projectConfig: config,
dependencies,
env: {
...processEnv,
TRIGGER_API_URL: apiUrl,
TRIGGER_SECRET_KEY: apiKey,
...(environmentVariablesResponse.success
? environmentVariablesResponse.data.variables
: {}),
},
debuggerOn,
debugOtel,
resolveEnvVariables: createResolveEnvironmentVariablesFunction(configModule),
},
debuggerOn,
debugOtel,
resolveEnvVariables: createResolveEnvironmentVariablesFunction(configModule),
});
environmentClient
);
try {
await backgroundWorker.initialize();
@@ -46,7 +46,6 @@ import {
UncaughtExceptionError,
UnexpectedExitError,
} from "../common/errors.js";
import { env } from "node:process";
import { CliApiClient } from "../../apiClient.js";
export type CurrentWorkers = BackgroundWorkerCoordinator["currentWorkers"];
@@ -290,7 +289,8 @@ export class BackgroundWorker {
constructor(
public path: string,
public params: BackgroundWorkerParams
public params: BackgroundWorkerParams,
private apiClient: CliApiClient
) {}
close() {