Angular CLI and OS Environment Variables
Sara Lara
373

Ouch… stupid me :-) I was thinking about something else. You are not generating .env file obviously….

But actually the same problem stays for ./src/environment/env… file — it might already exist or even committed into repository. So you should then ignore such auto-generated …/{environment}.ts files from being versioned, to not accidentally commit secrets.

Show your support

Clapping shows how much you appreciated Roman Dushko’s story.