From 7c4fdc4bf6a6b96df056426aa09bc41d1cc4d369 Mon Sep 17 00:00:00 2001 From: Patrick Arminio Date: Tue, 23 Jun 2026 10:39:33 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20Use=20new=20deployment=20r?= =?UTF-8?q?oute=20to=20fetch=20deployment?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Shortcake-Parent: main --- src/cloud/api.ts | 9 ++------- src/cloud/commands/deploy.ts | 4 +--- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/src/cloud/api.ts b/src/cloud/api.ts index d689cd8..39b24bf 100644 --- a/src/cloud/api.ts +++ b/src/cloud/api.ts @@ -141,13 +141,8 @@ export class ApiService { }) } - async getDeployment( - appId: string, - deploymentId: string, - ): Promise { - return this.request( - `/apps/${appId}/deployments/${deploymentId}/`, - ) + async getDeployment(deploymentId: string): Promise { + return this.request(`/deployments/${deploymentId}`) } async *streamAppLogs(options: { diff --git a/src/cloud/commands/deploy.ts b/src/cloud/commands/deploy.ts index e67aecd..ab787c0 100644 --- a/src/cloud/commands/deploy.ts +++ b/src/cloud/commands/deploy.ts @@ -142,7 +142,6 @@ export async function deploy(context: DeployContext): Promise { // Poll for deployment status const result = await pollDeploymentStatus( apiService, - config.app_id, deployment.id, updateStatus, ) @@ -244,12 +243,11 @@ async function uploadToS3( async function pollDeploymentStatus( apiService: ApiService, - appId: string, deploymentId: string, updateStatus: (text: string) => void, ): Promise { for (let attempt = 0; attempt < MAX_POLL_ATTEMPTS; attempt++) { - const deployment = await apiService.getDeployment(appId, deploymentId) + const deployment = await apiService.getDeployment(deploymentId) if ( deployment.status === DeploymentStatus.success ||