Search code examples
angularangular15

Angular 15 environment.ts change


Can anyone explain to me why Angular 15 doesn't automatically create the files: environment.ts I understand this changed from version 14 to 15 More I did not understand the reason for this change, forcing to create manually, a standard thing.

an explanation of my doubt, the solution I already have.


Solution

  • This post explains very well the why angular team chose to remove those files.

    Angular uses a new way to tell main.ts that applicaiton is running in dev / prod mode, removing the need of having environment.ts in the first place as stated in the article