$ man environment-variables

Engineering · Deployment

Environment Variables

Secret values like API keys that you don't want in your code.

by Shawn Tenam


为什么重要

API keys, database passwords, MCP tokens. These can't live in your repo. They'd be public on GitHub. Environment variables let you reference them without exposing them.

你怎么用它

Create a .env file locally with API_KEY=your_key_here. Add it to .gitignore so it never gets committed. On Vercel, add the same variables in the dashboard so your deployed site can access them.


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