Skip to content

Commit af27c59

Browse files
committed
fix: 스웨거 서버 주소 환경별 설정
1 parent b6c76a7 commit af27c59

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/common/swagger/index.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,12 @@ const swaggerDefinition = {
3434
},
3535
servers: [
3636
{
37-
url: 'http://localhost:3000',
38-
description: 'Development server',
37+
url: process.env.NODE_ENV === 'production'
38+
? 'http://3.35.0.31:3000'
39+
: 'http://localhost:3000',
40+
description: process.env.NODE_ENV === 'production'
41+
? 'Production server'
42+
: 'Development server',
3943
},
4044
],
4145
components: {

0 commit comments

Comments
 (0)