Skip to content

Commit 12a94f8

Browse files
committed
add callout for branch env variables
1 parent 102741e commit 12a94f8

File tree

1 file changed

+7
-0
lines changed
  • src/pages/[platform]/deploy-and-host/fullstack-branching/secrets-and-vars

1 file changed

+7
-0
lines changed

src/pages/[platform]/deploy-and-host/fullstack-branching/secrets-and-vars/index.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,13 @@ build:
136136
- npm run build
137137
```
138138
139+
<Callout warning>
140+
141+
Note: do not store secret values in environment variables. Environment variables values are rendered in plaintext to the build artifacts and can be accessed by anyone with access to the build artifacts or [get-app](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/amplify/get-app.html) command.
142+
143+
</Callout>
144+
145+
139146
<Callout info>
140147
With the implementation above, the environment variable is written in a `.env` file. However, you can write it to any file depending on your platform.
141148

0 commit comments

Comments
 (0)