Skip to content

Commit

Permalink
fix server default port
Browse files Browse the repository at this point in the history
  • Loading branch information
zardoy committed Sep 27, 2023
1 parent ae18411 commit e7c2b98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ if (process.argv[3] === 'dev') {
}

const portArg = process.argv.indexOf('--port')
const port = require.main === module ? process.argv[2] : (portArg !== -1 ? process.argv[portArg + 1] : 8080)
const port = (require.main === module ? process.argv[2] : portArg !== -1 ? process.argv[portArg + 1] : undefined) || 8080

// Start the server
const server = process.argv.includes('--prod') ?
Expand Down

0 comments on commit e7c2b98

Please sign in to comment.