Ionic-App-Scripts 0.0.47: Check if dev or prod environment in main.ts

before ionic-app-scripts version 0.0.47 we had different entry points for dev and prod environments ( and We used that feature to set different API’s endpoints.

Now that we have a unique entry point (main.ts) which is the best or suggested way to identify the environment inside the typescript file (main.ts)?



1 Like