-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #141 from TeamBookTez/develop
[release] v2.1.0
- Loading branch information
Showing
19 changed files
with
352 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,41 @@ | ||
import dotenv from "dotenv"; | ||
|
||
// Set the NODE_ENV to 'development' by default | ||
// 개발 환경 설정 | ||
// default: 'development' | ||
process.env.NODE_ENV = process.env.NODE_ENV || "development"; | ||
|
||
const envFound = dotenv.config(); | ||
if (envFound.error) { | ||
// This error should crash whole process | ||
|
||
// 모든 프로세스 중지 | ||
throw new Error("⚠️ Couldn't find .env file ⚠️"); | ||
} | ||
|
||
export default { | ||
/** | ||
* Your favorite port | ||
*/ | ||
// 포트 번호 | ||
port: parseInt(process.env.PORT, 10), | ||
|
||
/** | ||
* Your secret sauce | ||
*/ | ||
// mongoDB 주소 | ||
mongoURI: process.env.MONGODB_URI, | ||
|
||
jwtSecret: process.env.JWT_SECRET, | ||
jwtAlgorithm: process.env.JWT_ALGO, | ||
// slack WebHook 주소 | ||
slackURI: process.env.DEV_WEB_HOOK_ERROR_MONITORING, | ||
|
||
// 기본 이미지 | ||
defaultImg: { | ||
user: process.env.DEFAULT_IMG, | ||
book: process.env.DEFAULT_BOOK_IMG, | ||
}, | ||
|
||
// jwt 관련 | ||
jwt: { | ||
secret: process.env.JWT_SECRET, | ||
algorithm: process.env.JWT_ALGO, | ||
}, | ||
|
||
// S3 버킷 연결 부분 | ||
awsBucket: process.env.AWS_BUCKET, | ||
awsS3AccessKey: process.env.AWS_ACCESS_KEY, | ||
awsS3SecretAccessKey: process.env.AWS_SECRET_ACCESS_KEY, | ||
// S3 관련 | ||
aws: { | ||
bucket: process.env.AWS_BUCKET, | ||
s3AccessKey: process.env.AWS_ACCESS_KEY, | ||
s3SecretAccessKey: process.env.AWS_SECRET_ACCESS_KEY, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.