docs: warn against storing secrets in environment files

Add a CRITICAL callout warning that files in `src/environments/`
ship to the client and should not hold secrets like API keys.
This commit is contained in:
Kam 2026-04-20 22:29:17 +03:00 committed by Leon Senft
parent c04c0b977a
commit d27e2c24e1

View file

@ -99,6 +99,8 @@ export const environment = {
};
```
CRITICAL: Files in `src/environments/` are bundled into your client-side application and visible to anyone who loads the page. Never store secrets such as API keys here. Use a server-side proxy or a secrets manager instead.
You can add target-specific configuration files, such as `environment.development.ts`.
The following content sets default values for the development build target: