Skip to content

Glossary

What is an environment variable?

An environment variable is a named setting stored outside the code, on the hosting platform or server, commonly used to hold keys, passwords and addresses that differ between environments.

Why does it matter to a buyer?

Keeping secrets in environment variables keeps them out of the code repository. It does not make them private by itself, because some frameworks send chosen variables to the browser. In Next.js, any variable whose name starts with NEXT_PUBLIC_ is built into the code visitors download.

An example

For example, a payment provider’s secret key belongs in a server-only environment variable, and it becomes public if it is given a name the framework exposes to the browser.

The AI-built app security checklist

Related terms

Send a brief

Tell us what you need built.

Send a brief. It does not need to be technical. Within two working days you get a first view, and within a week a written plan, a fixed price and the risks.

Or book a call first

Say in plain language what you want to exist, who it is for, and anything that worries you. It does not need to be technical.

Step 1 of 2. Next we ask your name and company.

Read by a senior engineer. Used only to reply to you. Privacy

Send a brief.