Environment variables

Introduction

Environment variables are values that impact the processes and behavior of vaahCMS, it may access the values for configuration purposes. Visit following url you will see all the Environment variables that is inside .env.custom file.

<public-url>/backend#/vaah/settings/env-variables

Below Image is an example of .env.custom file

Usage

Add New Environment Variables

For adding a variable we need to scroll down, at the bottom-right corner a text field with a button will be visible to us. like below image :

Until the field is null Add Env Variable button will be disabled. Once variable name is entered,button will be enabled and after clicking it will add new environment variable to the list and .env.custom file.

To save the list with newly added environment variable you need to click on save button Then a warning confirmation will come just like below image:

Note
Whatever changes you made to this list of env variables, changes will be reflected to .env.custom file and vice versa.

Watch below video for better understanding.

You can observe every letter and spaces are converted to uppercase and "_" respectively to reduce error during using as it will affect environment of the project.

Other features

Note
To use Environment variables inside your project, you just need to copy the code for that variable by clicking on copy button and paste it wherever you want that env variable to use.

In the blue colour tag active env file name is written.

At the top-right corner a download button will be visible, by clicking it .env.custom file will be downloaded.

Besides Download button a refresh button is there, through which you can reload the environment variables list.

Table of Contents