Environment variables & secrets

You can use environment variables to store sensitive information like database connection strings.

Values of environment variables can only be seen by users with the admin role. Users with the dev role can see which variables are available but not their values.

To edit the environment variables of an app, click "Edit secrets" in the right-hand sidebar under "App secrets":

After hitting save, your app will be reloaded with the new environment variables.

You can access environment variables in your Node.js app with process.env. See also the Node.js docs on process.env.