Skip to content

Commit

Permalink
Fix: fix NODE_ENV
Browse files Browse the repository at this point in the history
  • Loading branch information
jokj624 committed Dec 11, 2023
1 parent 6f065b3 commit bcc4896
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ app.use(function (err, req, res, next) {
});

const port =
process.env.NODE_ENV === 'dev' ? process.env.DEV_PORT : process.env.PORT;
process.env.NODE_ENV === 'development'
? process.env.DEV_PORT
: process.env.PORT;

app
.listen(port, () => {
Expand Down

0 comments on commit bcc4896

Please sign in to comment.