You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/workers/configuration/secrets.mdx
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,11 +46,10 @@ To add a secret via the dashboard:
46
46
1. Log in to [Cloudflare dashboard](https://dash.cloudflare.com/) and select your account.
47
47
2. Select **Workers & Pages**.
48
48
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.
54
53
55
54
### Delete secrets from your project
56
55
@@ -77,9 +76,10 @@ To delete a secret from your Worker project via the dashboard:
77
76
1. Log in to [Cloudflare dashboard](https://dash.cloudflare.com/) and select your account.
78
77
2. Select **Workers & Pages**.
79
78
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.
0 commit comments