Ravi Guturu

Ravi Guturu

  • NA
  • 206
  • 0

Deploy same build to multiple subdomains

Jun 27 2020 4:41 AM
I have  a scenario where the codebase is same and deploy to multiple subdomains like client1.domain.com,client2.domain.com,client3.domain.com,client4.domain.com,client5.domain.com.
The environment.ts settings are different for each client. 
 
Do we need to create 5 dist fodlders and map each client to respective dist folder? or can we map all five subdoamin Urls to a single dist folder and get the environment settings at runtime thru API?
 
Please suggest any best approaches. 

Answers (1)