$ man environment-files

Engineering · Data Formats

Environment Files

Files that store environment variables for local development.

by Shawn Tenam


为什么重要

.env files keep secrets out of Git. API keys, tokens, database URLs. They're local only. Each developer has their own. Vercel has its own set for production.

你怎么用它

Create .env in your project root. Add API_KEY=value. Add .env to .gitignore. Load variables with process.env.API_KEY in code.


相关术语
Environment Variables
工程与 AI 指南所有术语
ShawnOS.ai|theGTMOS.ai|theContentOS.ai
built with Next.js · Tailwind · Claude · Remotion