From 12b4b11539560839284fabc7097e1bc416fd983e Mon Sep 17 00:00:00 2001 From: Adesoji Alu Date: Sat, 21 Jun 2025 11:00:29 +0100 Subject: [PATCH] Update index.js --- index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index ad0430b..05354a3 100644 --- a/index.js +++ b/index.js @@ -71,10 +71,14 @@ async function getDeploymentSource(id) { } async function getDeploymentId(domain) { - const deployment = await getJSONFromAPI(`/v13/deployments/${domain}`); + let path = `/v13/deployments/${domain}`; + if (VERCEL_TEAM) path += `?teamId=${VERCEL_TEAM}`; // Added teamId support + const deployment = await getJSONFromAPI(path); return deployment.id; } + + async function downloadFile(deploymentId, fileId, destination) { let path = `/v7/deployments/${deploymentId}/files/${fileId}`; if (VERCEL_TEAM) path += `?teamId=${VERCEL_TEAM}`;