Menu
Finance & Business

Hosting & deployment

Environment variable

Also called env var, .env file.

In plain English

An environment variable is a named setting that a program reads when it starts, kept outside the code.

Example

The same app reads one database address on a laptop and another on the live server, because each place sets a different environment variable.

Why it matters

Node.js docs explain that process.env holds the user environment, a set of names and values a program can read. Apps use environment variables for settings that change between places, such as which database to use, and for secrets like API keys that must not be written into the code.

How it shows up on bot.ski

Botski keeps keys and other secrets in environment variables on its host, never in the site's code.

Common confusion

Putting a secret in an environment variable keeps it out of the code, but anyone who can read the server settings can still see it.

Sources

Updated October 11, 2026.

Cookie preferences