-
DNS Configuration
*.foliox.site → CNAME → cname.vercel-dns.com
-
Add wildcard domain in Vercel dashboard
*.foliox.site
-
Route requests using Vercel middleware
middleware.js
So the resulting behaviour would be both
foliox.site/github-username
&
github-username.foliox.site
NOTE : But we need to explicitly exclude or handle www.foliox.site, otherwise the middleware will mistakenly treat www as a username.