Skip to content

Commit ecc0af1

Browse files
Strapi Cloud - Project settings: Variables page revamp (pt. 2) (#2425)
* Update project settings - variables section for new iteration of page revamp * Update screenshots --------- Co-authored-by: Pierre Wizla <[email protected]> Co-authored-by: Pierre Wizla <[email protected]>
1 parent dc7a8c2 commit ecc0af1

File tree

3 files changed

+19
-6
lines changed

3 files changed

+19
-6
lines changed

docusaurus/docs/cloud/projects/settings.md

+19-6
Original file line numberDiff line numberDiff line change
@@ -408,13 +408,14 @@ Default domain names are made of 2 randomly generated words followed by a hash.
408408

409409
### Variables
410410

411-
Environment variables (more information in the [Developer Documentation](../../dev-docs/configurations/environment)) are used to configure the environment of your Strapi application, such as the database connection.
411+
Environment variables (more information in the [CMS Documentation](../../dev-docs/configurations/environment)) are used to configure the environment of your Strapi application, such as the database connection.
412412

413+
<!-- Screenshots need to be updated for March 19 release -->
413414
<ThemedImage
414415
alt="Project variables"
415416
sources={{
416-
light: '/img/assets/cloud/settings_variables.png',
417-
dark: '/img/assets/cloud/settings_variables_DARK.png',
417+
light: '/img/assets/cloud/settings-variables2.png',
418+
dark: '/img/assets/cloud/settings-variables2_DARK.png',
418419
}}
419420
/>
420421

@@ -426,15 +427,27 @@ Hovering on an environment variable, either default or custom, displays the foll
426427

427428
- <Icon name="eye" /> **Show value** to replace the `*` characters with the actual value of a variable.
428429
- <Icon name="copy" /> **Copy to clipboard** to copy the value of a variable.
429-
- <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.
430-
- When editing a variable, don't forget to confirm the changes by clicking on **Save**.
430+
- <Icon name="dots-three" /> **Actions** to access the <Icon name="pencil-simple" /> Edit and <Icon name="trash-simple" /> Delete buttons.
431+
- When editing a default variable, the *Name* cannot be modified and the *Value* can only be automatically generated using the <Icon name="magic-wand" /> Generate value button. Don't forget to **Save** at the end.
432+
- When editing a custom variable, both the *Name* and *Value* can be modified by writing something new or by using the <Icon name="magic-wand" /> Generate value button. Don't forget to **Save** at the end.
431433
- When deleting a variable, you will be asked to click on a **Confirm** button to confirm the deletion.
432434

435+
<!-- Search bar to be confirmed for March 19 -->
436+
:::tip
437+
Use the search bar to find more quickly an environment variable in the list!
438+
:::
439+
433440
#### Creating custom environment variables
434441

435442
Custom environment variables can be created for the Strapi Cloud project. Make sure to redeploy your project after creating or editing an environment variable.
436443

444+
<!-- Future iteration
445+
:::note
446+
Instead of creating a new custom environment variable from scratch, you can also import one by clicking on the **Import variables (.env)** button.
447+
:::
448+
-->
449+
437450
1. In the *Custom environment variables* section, click on the **Add variable** button.
438-
2. Write the *Name* and *Value* of the new environment variable in the same-named fields.
451+
2. Write the *Name* and *Value* of the new environment variable in the same-named fields. Alternatively, you can click on the <Icon name="magic-wand" /> icon to generate automatically the name and value.
439452
3. (optional) Click on **Add another** to directly create one or more other custom environment variables.
440453
4. Click on the **Save** button to confirm the creation of the custom environment variables.
Loading
Loading

0 commit comments

Comments
 (0)