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}`;