diff --git a/packages/server/src/utils/process/execAsync.ts b/packages/server/src/utils/process/execAsync.ts index 0838e099f..c3421446d 100644 --- a/packages/server/src/utils/process/execAsync.ts +++ b/packages/server/src/utils/process/execAsync.ts @@ -1,4 +1,5 @@ import { exec, execFile } from "node:child_process"; +import type { ObjectEncodingOptions } from "node:fs"; import util from "node:util"; import { findServerById } from "@dokploy/server/services/server"; import { Client } from "ssh2"; @@ -11,7 +12,7 @@ const execAsyncBase = util.promisify(exec); export const execAsync = async ( command: string, - options?: { cwd?: string; env?: NodeJS.ProcessEnv }, + options?: ObjectEncodingOptions & ExecOptions, ): Promise<{ stdout: string; stderr: string }> => { try { const result = await execAsyncBase(command, options);