Use process.env in Angular 5 environment
Update Per the comments below the original answer was not entirely clear — Angular is built with Angular CLI, which is a node application, but you aren’t able to access process.env directly from within the app during that build process, as it’s not processed as a Node application. The concepts stay pretty much the same, … Read more