Vercel DNS Adapter
The Vercel DNS Adapter is used to create DNS records to manage domains hosted on Vercel.
This adapter is passed in as domain.dns when setting a custom domain; where example.com
is hosted on Vercel.
{ domain: { name: "example.com", dns: sst.vercel.dns({ domain: "example.com" }) }}Configure provider
-
To use this component, add the
@pulumiverse/vercelprovider to your app.Terminal window sst add @pulumiverse/vercel -
If you don’t already have a Vercel Access Token, follow this guide to create one.
-
Add a
VERCEL_API_TOKENenvironment variable with the access token value. If the domain belongs to a team, also add aVERCEL_TEAM_IDenvironment variable with the Team ID. You can find your Team ID inside your team’s general project settings in the Vercel dashboard.
Functions
dns
DnsArgs
domain
Type Input<string>
The domain name in your Vercel account to create the record in.
{ domain: "example.com"}transform?
transform.record?
Type DnsRecordArgs | (args: DnsRecordArgs, opts: ComponentResourceOptions, name: string) => void
Transform the Vercel record resource.