Skip to content

Commit f836b21

Browse files
authored
fix #17498 (#17973)
Co-authored-by: markmiller <[email protected]>
1 parent e1fe9de commit f836b21

File tree

2 files changed

+13
-14
lines changed

2 files changed

+13
-14
lines changed

src/content/docs/workers/configuration/environment-variables.mdx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,16 +83,15 @@ To add environment variables via the dashboard:
8383
2. Select **Workers & Pages**.
8484
3. In **Overview**, select your Worker.
8585
4. Select **Settings**.
86-
5. Select **Variables**.
87-
6. Under **Environment Variables**, select **Add variable**.
88-
7. Input a **Variable name** and its **Value**, which will be made available to your Worker.
89-
8. (Optional) To add multiple environment variables, select **Add variable**.
90-
9. Select **Save and deploy** to implement your changes.
86+
5. Under **Variables and Secrets**, select **Add**.
87+
6. Select a **Type**, input a **Variable name**, and input its **Value**. This variable will be made available to your Worker.
88+
7. (Optional) To add multiple environment variables, select **Add variable**.
89+
8. Select **Deploy** to implement your changes.
9190

9291
:::caution[Plaintext strings and secrets]
9392

9493

95-
Only select **Encrypt** if your environment variable is a [secret](/workers/configuration/secrets/).
94+
Select the **Secret** type if your environment variable is a [secret](/workers/configuration/secrets/).
9695

9796

9897
:::

src/content/docs/workers/configuration/secrets.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,10 @@ To add a secret via the dashboard:
4646
1. Log in to [Cloudflare dashboard](https://dash.cloudflare.com/) and select your account.
4747
2. Select **Workers & Pages**.
4848
3. In **Overview**, select your Worker > **Settings**.
49-
4. Under **Environment Variables**, select **Add variable**.
50-
5. Input a **Variable name** and its **value**, which will be made available to your Worker.
51-
6. Select **Encrypt** to protect the secret's value. This will prevent the value from being visible via Wrangler and the dashboard.
52-
7. (Optional) To add multiple secrets, select **Add variable**.
53-
8. **Save** or **Save and Deploy** your changes.
49+
4. Under **Variables and Secrets**, select **Add**.
50+
5. Select the type **Secret**, input a **Variable name**, and input its **Value**. This secret will be made available to your Worker but the value will be hidden in Wrangler and the dashboard.
51+
6. (Optional) To add more secrets, select **Add variable**.
52+
7. Select **Deploy** to implement your changes.
5453

5554
### Delete secrets from your project
5655

@@ -77,9 +76,10 @@ To delete a secret from your Worker project via the dashboard:
7776
1. Log in to [Cloudflare dashboard](https://dash.cloudflare.com/) and select your account.
7877
2. Select **Workers & Pages**.
7978
3. In **Overview**, select your Worker > **Settings**.
80-
4. Under **Environment Variables**, select **Edit variables**.
81-
5. Select **X** next to the secret you want to delete.
82-
6. **Save** or **Save and Deploy** your changes.
79+
4. Under **Variables and Secrets**, select **Edit**.
80+
5. In the **Edit** drawer, select **X** next to the secret you want to delete.
81+
6. Select **Deploy** to implement your changes.
82+
7. (Optional) Instead of using the edit drawer, you can click the delete icon next to the secret.
8383

8484
<Render file="env_and_secrets" />
8585

0 commit comments

Comments
 (0)