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


#1

Hello,
before ionic-app-scripts version 0.0.47 we had different entry points for dev and prod environments (main.dev.ts and main.prod.ts). 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)?

Thanks.

Oscar