Skip to content

Glossary: Next.js Beyond the Basics

NEXT_PUBLIC_ variables

Also written: NEXT_PUBLIC_

Environment variables whose names start with NEXT_PUBLIC_ are written into the browser's JavaScript at build time. They are public, so never put secrets in them.

Where the book teaches it

Related terms

Environment variable