From 76613de095ddbceb15eb32fff2e922061c3fc23d Mon Sep 17 00:00:00 2001 From: Mauricio Siu Date: Tue, 2 Dec 2025 00:49:40 -0600 Subject: [PATCH] fix: await build command in deployPreviewApplication function - Updated the deployPreviewApplication function to await the getBuildCommand call, ensuring the command is fully constructed before execution. - This change improves the reliability of the deployment process by handling asynchronous command generation correctly. --- packages/server/src/services/application.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/services/application.ts b/packages/server/src/services/application.ts index 2fb63ff7e..61a77ae5a 100644 --- a/packages/server/src/services/application.ts +++ b/packages/server/src/services/application.ts @@ -413,7 +413,7 @@ export const deployPreviewApplication = async ({ appName: previewDeployment.appName, branch: previewDeployment.branch, }); - command += getBuildCommand(application); + command += await getBuildCommand(application); const commandWithLog = `(${command}) >> ${deployment.logPath} 2>&1`; if (application.serverId) {