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.
This commit is contained in:
Mauricio Siu
2025-12-02 00:49:40 -06:00
parent 5a7f55ea63
commit 76613de095
+1 -1
View File
@@ -413,7 +413,7 @@ export const deployPreviewApplication = async ({
appName: previewDeployment.appName, appName: previewDeployment.appName,
branch: previewDeployment.branch, branch: previewDeployment.branch,
}); });
command += getBuildCommand(application); command += await getBuildCommand(application);
const commandWithLog = `(${command}) >> ${deployment.logPath} 2>&1`; const commandWithLog = `(${command}) >> ${deployment.logPath} 2>&1`;
if (application.serverId) { if (application.serverId) {