I am using Next.js and I want to give my users the ability to add their own custom domains. For example, my app is hosted on DigitalOcean with domain ‘https://app.com’ and the user, say John, page is ‘https://app.com/john’ Now I want my user,John, to be able to add his own domain ‘www.john.com’ so that it display ‘https://app.com/john’ site.
I am new to networking so I am having trouble coming up with a viable solution.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.