DEV Community

Cover image for Environment files are back with Angular v15.1
Cagkan Mert Oztas
Cagkan Mert Oztas

Posted on

Environment files are back with Angular v15.1

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]
Enter fullscreen mode Exit fullscreen mode

command.


Check out my website for more…

Top comments (0)