0

I am trying to create a platform using next.js and i'm at the point of allowing users to add custom domains using vercel's SDK but I'm not sure how I am suppose to allow users to verfify their domain. I have a couple domains I bought and are in namecheap and I get these results from the SDK when using those I don't get the object with the TXT record needed to verfy those domains and I haven't added those domains to vercel but if I check in the vercel dashboard it says that it's unverfied so the SDK returns that it is verfied and the dashboard says that it's not (the dashboard is correct) but if I enter a random domain for example google.com it will return the TXT record I need to enter to verfiy the domain I am using this code:

// The 'idOrName' is your project name in Vercel, for example: 'multi-tenant-app'
await projectsAddProjectDomain(vercel, {
  idOrName: 'my-multi-tenant-app',
  teamId: 'team_1234',
  requestBody: {
    // The tenant's custom domain
    name: 'customacmesite.com',
  },
});

. just gives back this result :

{
  ok: true,
  value: {
    name: 'example.com',
    apexName: 'example.com',
    projectId: 'prj_****',
    redirect: null,
    redirectStatusCode: null,
    gitBranch: null,
    customEnvironmentId: null,
    updatedAt: 1748560976494,
    createdAt: 1748560976494,
    verified: true
  }
}

.I am trying to use the platform features on vercel

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.