Skip to content

Commit

Permalink
fix NODE_ENV port priority (#356)
Browse files Browse the repository at this point in the history
  • Loading branch information
spartanz51 authored May 26, 2023
1 parent b6547a6 commit 49bf529
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ require("dotenv").config(

const app = express();
const port =
process.env.PORT || process.env.NODE_ENV !== "development" ? 80 : 3002; // default port to listen
process.env.PORT || (process.env.NODE_ENV !== "development" ? 80 : 3002); // default port to listen

app.use(express.static("public"));

Expand Down

0 comments on commit 49bf529

Please sign in to comment.