Skip to content

DNS Adapter

Reference doc for the `sst.vercel.dns` functions..

The Vercel DnsAdapters lets you manage DNS records for Vercel domains.

sst.vercel.dns({
domain: "example.com"
});

Configuring Vercel provider

  1. To use this component, add the @pulumiverse/vercel provider to your app. You can do this by running:

    Terminal window
    sst add @pulumiverse/vercel

    The sst add commands adds and installs the provider to your sst.config.ts file.

  2. If you don’t already have a Vercel Access Token, follow this guide to create one.

  3. Add a VERCEL_API_TOKEN environment variable with the access token value. If the domain belongs to a team, also add a VERCEL_TEAM_ID environment variable with the Team ID. You can find your Team ID inside your team’s general project settings on the Vercel dashboard.


Functions

dns

dns(args)

Parameters

Returns Object

DnsArgs

domain

Type Input<string>

The domain name in your Vercel account to create the record in.

{
domain: "example.com"
}

transform?

Type Object

Transform how this component creates its underlying resources.

transform.record?

Type DnsRecordArgs | (args: DnsRecordArgs => DnsRecordArgs | void)

Transform the Vercel record resource.