Skip to content

Commit f4b97d0

Browse files
Merge pull request #2419 from strapi/cloud/variables-revamp
Strapi Cloud settings: Environment Variables revamp
2 parents 06afc46 + d28ca4c commit f4b97d0

File tree

3 files changed

+20
-5
lines changed

3 files changed

+20
-5
lines changed

docusaurus/docs/cloud/projects/settings.md

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -414,8 +414,23 @@ Environment variables (more information in the [Developer Documentation](../../d
414414
}}
415415
/>
416416

417-
In the <Icon name="code" classes="ph-bold" /> *Variables* tab, you can:
418-
- click the **Add variable** button to create a new variable
419-
- edit any variable, each being composed of a *Name* and a *Value*
420-
- click the <Icon name="trash-simple" /> delete button associated with any non-default variable to delete it
421-
- click the **Save** button to save any change made on the page
417+
In the <Icon name="code" classes="ph-bold" /> *Variables* tab are listed both the default and custom environment variables for your Strapi Cloud project. Each variable is composed of a *Name* and a *Value*.
418+
419+
#### Managing environment variables
420+
421+
Hovering on an environment variable, either default or custom, displays the following available options:
422+
423+
- <Icon name="eye" /> **Show value** to replace the `*` characters with the actual value of a variable.
424+
- <Icon name="copy" /> **Copy to clipboard** to copy the value of a variable.
425+
- <Icon name="dots-three" /> **Actions** to access the <Icon name="pencil-simple" /> Edit and <Icon name="trash-simple" /> Delete buttons. Both options are only available for custom environment variables.
426+
- When editing a variable, don't forget to confirm the changes by clicking on **Save**.
427+
- When deleting a variable, you will be asked to click on a **Confirm** button to confirm the deletion.
428+
429+
#### Creating custom environment variables
430+
431+
Custom environment variables can be created for the Strapi Cloud project. Make sure to redeploy your project after creating or editing an environment variable.
432+
433+
1. In the *Custom environment variables* section, click on the **Add variable** button.
434+
2. Write the *Name* and *Value* of the new environment variable in the same-named fields.
435+
3. (optional) Click on **Add another** to directly create one or more other custom environment variables.
436+
4. Click on the **Save** button to confirm the creation of the custom environment variables.
-141 KB
Loading
-142 KB
Loading

0 commit comments

Comments
 (0)