Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
Expand Down