SubprocessConnectOptions
Defined in: src/client/types.ts:53
Options for subprocessConnect, which spawns a server process and pipes to it.
Extends
Section titled “Extends”Properties
Section titled “Properties”optional cwd?: string;Defined in: src/client/types.ts:55
Working directory for the spawned process. Defaults to the current directory.
optional env?: Record<string, string>;Defined in: src/client/types.ts:57
Extra environment variables, merged over the current process.env.
externalLocation?
Section titled “externalLocation?”optional externalLocation?: ExternalLocationConfig;Defined in: src/client/types.ts:49
External storage config for resolving externalized batches.
Inherited from
Section titled “Inherited from”PipeConnectOptions.externalLocation
onLog?
Section titled “onLog?”optional onLog?: (msg) => void;Defined in: src/client/types.ts:47
Callback invoked for each log/error message the server emits during a request.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
msg | LogMessage |
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”stderr?
Section titled “stderr?”optional stderr?: "pipe" | "inherit" | "ignore";Defined in: src/client/types.ts:59
How to handle the child’s stderr. Defaults to "ignore".