I have a situation like this:
-
My main app is
main.example.com -
My customers create folders in the app where their stuff is at
main.example.com/customer1,main.example.com/customer2etc -
My customers now want to map their own custom domain to a folder, e.g.
customer1.example.commaps tomain.example.com/customerso that when the user visitscustomer1.example.comthe files in inmain.example.com/customer1are served but the URL does not change and the visitor to the site always seescustomer1.example.comin the URL bar
What is the best way to achieve this on Vercel? Do I have to have a separate Nginx server running somewhere to configure the reverse proxy, or does Vercel provide some sort of built-in/elegant solution for these situations?