Skip to content

Commit

Permalink
feat: add env LISTEN_HOST
Browse files Browse the repository at this point in the history
  • Loading branch information
woody146 committed Jun 22, 2023
1 parent 7ca11b9 commit a23a617
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/bootstrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export async function startServer(routers: RouteConfig[]) {

const address = await server.listen({
port: port ? parseInt(port) : 3000,
host: process.env.API_HOST,
host: process.env.LISTEN_HOST || process.env.API_HOST,
});
console.log('✅ App ready: ' + address);
} catch (err) {
Expand Down

0 comments on commit a23a617

Please sign in to comment.