Skip to content
Open
Show file tree
Hide file tree
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
2 changes: 0 additions & 2 deletions .env.sample

This file was deleted.

8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const error = chalk.bold.red;

const VERCEL_TOKEN = process.env.VERCEL_TOKEN;
const VERCEL_DEPLOYMENT = process.argv[2];
const DESTDIR = process.argv[3] || VERCEL_DEPLOYMENT;
const DESTDIR = process.argv[3] || `../${VERCEL_DEPLOYMENT}`;
const VERCEL_TEAM = process.env.VERCEL_TEAM;

try {
Expand All @@ -35,9 +35,9 @@ async function main() {
const deploymentId = VERCEL_DEPLOYMENT.startsWith("dpl_")
? VERCEL_DEPLOYMENT
: await oraPromise(
getDeploymentId(VERCEL_DEPLOYMENT),
"Getting deployment id"
);
getDeploymentId(VERCEL_DEPLOYMENT),
"Getting deployment id"
);
const srcFiles = await oraPromise(
getDeploymentSource(deploymentId),
"Loading source files tree"
Expand Down