Skip to main content
DevTools24

.env 편집기

시각적 편집기로 환경 변수를 편집합니다. .env와 JSON 형식 간에 변환합니다.

=
=
🔒
=
DATABASE_URL=postgresql://localhost:5432/mydb
API_KEY=sk-your-api-key-here
NODE_ENV=development
{
  "DATABASE_URL": "postgresql://localhost:5432/mydb",
  "API_KEY": "sk-your-api-key-here",
  "NODE_ENV": "development"
}

Tips

  • • Variable names should be UPPERCASE with underscores
  • • Values with spaces are automatically quoted in output
  • • Mark sensitive values as "Secret" to hide them by default
  • • Never commit .env files with real secrets to version control

Environment Variables - 기술 세부 정보

.env files store configuration as KEY=VALUE pairs. They're loaded at runtime by tools like dotenv. Never commit real secrets to version control—use .env.example templates instead.

명령줄 대안

# Load .env in Node.js\nrequire('dotenv').config()\n\n# Access variables\nprocess.env.DATABASE_URL\n\n# Load in shell\nexport $(cat .env | xargs)

참조

공식 사양 보기