Skip to content

Commit 7c7f55f

Browse files
warisniz02dhmlau
authored andcommitted
feat: add a condition on process.env.HOST
Signed-off-by: warisniz02 <warisniz02@gmail.com> Signed-off-by: warisniz02 <warisniz02@gmail.com>
1 parent ec7c6a0 commit 7c7f55f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/cli/generators/app/templates/src/index.ts.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ if (require.main === module) {
1919
const config = {
2020
rest: {
2121
port: +(process.env.PORT ?? 3000),
22-
host: process.env.HOST !== undefined ? process.env.HOST : '127.0.0.1',
22+
host: process.env.HOST || '127.0.0.1',
2323
// The `gracePeriodForClose` provides a graceful close for http/https
2424
// servers with keep-alive clients. The default value is `Infinity`
2525
// (don't force-close). If you want to immediately destroy all sockets

0 commit comments

Comments
 (0)