[Workers] env variables revision#2103
Merged
Merged
Conversation
lukeed
reviewed
Aug 19, 2021
Luke's edits Co-authored-by: Luke Edwards <luke.edwards05@gmail.com>
lukeed
approved these changes
Aug 19, 2021
kodster28
approved these changes
Aug 19, 2021
|
|
||
| 1. Go to your **Workers script** > **Settings** > **Add variable** under **Environment Variables**. | ||
| 2. Input a **Variable name** and its **value**, which will be made available to your Worker. | ||
| 3. If your variable is a secret select **Encrypt** to protect its value. This will prevent the value from being visible via `wrangler` and the dashboard. |
Collaborator
There was a problem hiding this comment.
Suggested change
| 3. If your variable is a secret select **Encrypt** to protect its value. This will prevent the value from being visible via `wrangler` and the dashboard. | |
| 3. If your variable is a secret, click **Encrypt** to protect its value. This will prevent the value from being visible via `wrangler` and the dashboard. |
| 1. Go to your **Workers script** > **Settings** > **Add variable** under **Environment Variables**. | ||
| 2. Input a **Variable name** and its **value**, which will be made available to your Worker. | ||
| 3. If your variable is a secret select **Encrypt** to protect its value. This will prevent the value from being visible via `wrangler` and the dashboard. | ||
| 3. (Optional) To add multiple environment variables, select **Add variable**. |
Collaborator
There was a problem hiding this comment.
Suggested change
| 3. (Optional) To add multiple environment variables, select **Add variable**. | |
| 3. (Optional) To add multiple environment variables, click **Add variable**. |
| 2. Input a **Variable name** and its **value**, which will be made available to your Worker. | ||
| 3. If your variable is a secret select **Encrypt** to protect its value. This will prevent the value from being visible via `wrangler` and the dashboard. | ||
| 3. (Optional) To add multiple environment variables, select **Add variable**. | ||
| 5. Select **Save** to implement your changes. |
Collaborator
There was a problem hiding this comment.
Suggested change
| 5. Select **Save** to implement your changes. | |
| 5. Click **Save** to implement your changes. |
Collaborator
There was a problem hiding this comment.
Change in other places too. I think we decided on Click for buttons and Select/Choose for items in a dropdown list.
|
|
||
| ## Adding environment variables via wrangler | ||
|
|
||
| * Environment variables are defined via the `[vars]` configuration in your `wranger.toml` file and are always plaintext values. |
Collaborator
There was a problem hiding this comment.
For SEO and scanability, I'd change this from a bulleted list to some h3s
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
closes #1937