Current Setup
-
Backend (API) hosted on Utho →
api.maindomain.com
-
Admin (Staging) hosted on Vercel →
stage.maindomain.com
-
Admin (Production) hosted on Vercel →
ls.``maindomain``.com
,spiral.maindomain.com
-
Public Site hosted on Vercel →
maindomain.com
Problem
-
The system is multi-tenant.
-
When a new tenant is created, the platform registers a new subdomain on Vercel automatically via Vercel’s API.
-
Example: Creating a new tenant on the staging site →
stage2.``maindomain.com
. -
However, for the new subdomain to work, Vercel requires CNAME and TXT DNS records to be added in GoDaddy (domain registrar).
-
Currently, this DNS step is manual (adding records for every new tenant).
-
This is not scalable, since tenants are supposed to self-register and instantly access their subdomain without waiting for DNS updates.
Requirement
-
Implement a solution where new tenant subdomains work automatically, without manually adding CNAME/TXT records in GoDaddy each time.
-
Ensure the DNS setup and Vercel domain registration are fully automated, so the tenant onboarding process is seamless.
Do you want me to also outline possible solutions (e.g., wildcard subdomain, programmatic DNS API integration with GoDaddy, or moving DNS management to Vercel)?