dev/nodejs
nodejs - env파일
wlrn566
2023. 7. 22. 17:08
1. env 파일 생성
2. dotenv 패키지 추가
npm i dotenv
3. config파일에 사용
require('dotenv').config(); // 선언 필요