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: docusaurus/docs/cloud/projects/settings.md
+19-6
Original file line number
Diff line number
Diff line change
@@ -408,13 +408,14 @@ Default domain names are made of 2 randomly generated words followed by a hash.
408
408
409
409
### Variables
410
410
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.
412
412
413
+
<!-- Screenshots need to be updated for March 19 release -->
@@ -426,15 +427,27 @@ Hovering on an environment variable, either default or custom, displays the foll
426
427
427
428
- <Iconname="eye" /> **Show value** to replace the `*` characters with the actual value of a variable.
428
429
- <Iconname="copy" /> **Copy to clipboard** to copy the value of a variable.
429
-
- <Iconname="dots-three" /> **Actions** to access the <Iconname="pencil-simple" /> Edit and <Iconname="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
+
- <Iconname="dots-three" /> **Actions** to access the <Iconname="pencil-simple" /> Edit and <Iconname="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 <Iconname="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 <Iconname="magic-wand" /> Generate value button. Don't forget to **Save** at the end.
431
433
- When deleting a variable, you will be asked to click on a **Confirm** button to confirm the deletion.
432
434
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
+
433
440
#### Creating custom environment variables
434
441
435
442
Custom environment variables can be created for the Strapi Cloud project. Make sure to redeploy your project after creating or editing an environment variable.
436
443
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
+
437
450
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 <Iconname="magic-wand" /> icon to generate automatically the name and value.
439
452
3. (optional) Click on **Add another** to directly create one or more other custom environment variables.
440
453
4. Click on the **Save** button to confirm the creation of the custom environment variables.
0 commit comments