Skip to content

Glossary: Next.js Basics

Environment variable

Also written: environment variables

A named setting a program receives from outside its code, such as `API_URL`. It lets the same code use localhost in development and the real API address in production.

Where the book teaches it

Related terms

.env.localprocess.envNEXT_PUBLIC_