As we all know, when creating a new project in Angular v15, environment files were no longer included. To bring back the environment files, you had to create the files manually, edit the angular.json, and replace the files when switching to production mode.
The Angular v15.1 update comes with a great command for this. Now, you can automatically create your environment files and set the fileReplacement settings with the
ng generate environment [--project-name]