Skip to content

Glossary: Next.js Beyond the Basics

.env.local

Also written: env file, .env.production

A file of environment variables, such as DB_FILE or secrets, that stays out of Git. Next.js reads .env.local by itself, and on the server the same job is done by .env.production.

Where the book teaches it

Related terms

Environment variabledrizzle-kit