I have scenario:
- user create their own subdomain/domain
- assign to our project vercel using Vercel Endpoint (
/v10/projects/${config.projectId}/domains) - Vercel domain page show expected result, domain assigned successfully.
But, it show No Deployment warning.
I expect this process assigned automatically without require to re-deploy.

This is my code to build up the request to vercel endpoint
const vercelApiUrl = `${this.vercelApi}/v10/projects/${config.projectId}/domains?teamId=${config.teamId}`; const vercelApiBody = { name: domain, gitBranch: process.env.VERCEL_DOMAIN_GITBRANCH, };I have some question:
- If this flow require re-deploy, what API should I use to re-deploy latest deployment of selected branch?
- If this scenario can achive without re-deploy, how I to do it using Vercel Endpoint API?
- How do I purge cache using Vercel Endpoint API?