I am looking to customize certain variables in Angular 4 based on whether the app is running on a production server or localhost for development purposes. Is there a way to achieve this differentiation? While I utilize environment variables in node.js, I am unsure of how to implement similar functionality in an Angular web application. What would be the most effective approach to configuring Angular for production without manual intervention prior to deployment?