'How to create dynamic sub domains for angular 12 project?

I have multiple users and for all users I need multiple sub domains dynamically. For example : abc.com (Its is my main domain)

I Need: user1.abc.comenter code here user2.abc.comenter code here user3.abc.com enter code here

I use Angular 12 for front end and for backend I use node JS. Application host in firebase hosting.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source