Running Multiple Apps Under a Single Domain with Vercel
I own the copdips.com domain, and need to point it at several Vercel apps so that:
- https://apps.copdips.com/app1 routes to https://app1.vercel.app
- https://apps.copdips.com/app2 routes to https://app2.vercel.app
- direct https://app1.vercel.app, still works as before
- direct https://app2.vercel.app, still works as before
This is a standard Multi-Tenant Routing with Context Awareness scenario. To serve both the root domain (app1.vercel.app) and the subpath version (apps.copdips.com/app1) from the same deployment, each app must become host-aware-effectively detecting whether the request comes through the main router or directly and adjusting asset URLs and links accordingly.