I would like to retrieve info about where the application is running.
So let's say I have a DEV and PROD environment. In my code, I would like to retrieve the link of the environment, where the application is running, e.g.:
- if in DEV environment:
https://dev.mycompany.com/myproduct/app - if in PROD environment:
https://mycompany.com/myproduct/app
Any hints?