Skip to content

Commit

Permalink
feat: add a condition on process.env.HOST
Browse files Browse the repository at this point in the history
Signed-off-by: warisniz02 <[email protected]>
  • Loading branch information
warisniz02 committed Aug 26, 2024
1 parent f285ad3 commit b329d23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/generators/app/templates/src/index.ts.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if (require.main === module) {
const config = {
rest: {
port: +(process.env.PORT ?? 3000),
host: process.env.HOST !== undefined ? process.env.HOST : '127.0.0.1',
host: process.env.HOST ?? '127.0.0.1',
// The `gracePeriodForClose` provides a graceful close for http/https
// servers with keep-alive clients. The default value is `Infinity`
// (don't force-close). If you want to immediately destroy all sockets
Expand Down

0 comments on commit b329d23

Please sign in to comment.