Skip to content

SubprocessConnectOptions

Defined in: src/client/types.ts:61

Options for subprocessConnect, which spawns a server process and pipes to it.

optional cwd?: string;

Defined in: src/client/types.ts:63

Working directory for the spawned process. Defaults to the current directory.


optional env?: Record<string, string>;

Defined in: src/client/types.ts:65

Extra environment variables, merged over the current process.env.


optional externalLocation?: ExternalLocationConfig;

Defined in: src/client/types.ts:49

External storage config for resolving externalized batches.

PipeConnectOptions.externalLocation


optional onLog?: (msg) => void;

Defined in: src/client/types.ts:47

Callback invoked for each log/error message the server emits during a request.

Parameter Type
msg LogMessage

void

PipeConnectOptions.onLog


optional stderr?: "pipe" | "inherit" | "ignore";

Defined in: src/client/types.ts:67

How to handle the child’s stderr. Defaults to "ignore".