Skip to content

Glossary: Next.js Basics

NEXT_PUBLIC_

A name prefix that makes Next.js copy an environment variable's value into the browser's JavaScript at build time. Never use it on a secret.

Where the book teaches it

Related terms

Environment variableprocess.env