mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
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:
parent
c04c0b977a
commit
d27e2c24e1
1 changed files with 2 additions and 0 deletions
|
|
@ -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:
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue