Vercel is the platform for frontend developers, providing the speed and reliability innovators need to create at the moment of inspiration.
Emit new events when files get created, changed or deleted from a remote directory. See the docs
Uploads a UTF-8 string as a file on an SFTP server
List deployments under the account corresponding to the API token. See the docs
The Vercel API empowers developers to automate, manage, and interact with their Vercel projects and deployments directly through code. With the Vercel API on Pipedream, you can harness the power of serverless functions to create dynamic and responsive workflows. Automate deployment processes, sync deployment statuses with other tools, trigger notifications based on deployment events, or manage your domains and aliases—all within the seamless integration landscape of Pipedream.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
vercel_token_auth: {
type: "app",
app: "vercel_token_auth",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.vercel.com/www/user`,
headers: {
Authorization: `Bearer ${this.vercel_token_auth.$auth.personal_access_token}`,
},
})
},
})
SFTP on Pipedream enables secure file management on remote servers directly from your workflows. Utilize this app to automate file uploads, downloads, and synchronization tasks between your systems and SFTP servers. Implement robust data pipelines or deploy content to web servers without manual intervention, all while maintaining a high level of security with password-based authentication.
module.exports = defineComponent({
props: {
sftp_password_based_auth: {
type: "app",
app: "sftp_password_based_auth",
}
},
async run({steps, $}) {
const Client = require('ssh2-sftp-client');
const {
host,
username,
password,
} = this.sftp_password_based_auth.$auth
const config = {
host,
username,
password,
}
const sftp = new Client()
await sftp.connect(config)
this.cwd = await sftp.cwd();
return await sftp.end();
},
})