-
Notifications
You must be signed in to change notification settings - Fork 3
Settings
uihyeon.cha edited this page Mar 3, 2020
·
1 revision
환경변수와 관련된 설정파일은 모두 {workspace}/configs
경로에 있습니다.
기본 설정파일이 [name].env.example
형태로 존재하고 있으며, 파일명에서 .example
을 삭제한 뒤 같은 경로에 복사하여 사용할 수 있습니다.
configs/
┣ [name].env.example
+ ┗ [name].env
파일명 뒤에 .local
을 붙여서 local에서만 사용할 수 있는 설정파일을 만들 수 있습니다.
configs/
+ ┗ [name].env.local
NodeJs의 환경변수인 NODE_ENV
에 따라서 다른 설정파일을 사용할 수 있습니다. NODE_ENV
는 production, test, development 이렇게 3개만 사용할 수 있습니다.
configs/
+ ┗ [name].env.production
환경변수는 설정파일의 우선 순위에 따라서 적용되거나 삭제될 수 있습니다.
[name].env.[NODE_ENV].local
[name].env.[NODE_ENV]
[name].env.local
[name].env