Menu

Introducing the Vercel TypeScript SDK - Vercel
📰
0

Introducing the Vercel TypeScript SDK - Vercel

Vercel News·Lee Robinson·4 days ago
#r57OgtJl
#vercel#every#error#including#const#article
Reading 0:00
15s threshold

We’ve published a TypeScript-native SDK for working with the Vercel API.

This SDK includes:

  • Full type safety for accessing the Vercel REST API with Zod schemas

  • New documentation for every function, argument, and type

  • Better tree-shaking support with optional standalone functions

  • Intuitive error handling and detailed error messages

  • Configurable retry strategies (including backoffs)

import { Vercel } from '@vercel/sdk';

const vercel = new Vercel({

bearerToken: process.env.VERCEL_TOKEN,

});

const result = await vercel.deployments.getDeployment({

idOrUrl: 'dpl_89qyp1cskzkLrVicDaZoDbjyHuDJ'

});

This SDK can be used to automate every part of Vercel’s platform including:

  • Deployment automation and management

  • Project creation and configuration

  • Domain management

  • Team and user administration

  • Environment variable management

  • Logs and monitoring

  • Integration configuration

View the docs or explore the repo.

Read More