DEV Community

Discussion on: Deploy NestJS typescript app to Heroku (Solved: 503 Error)

Collapse
 
bastiw profile image
Sebastian Weiß

Thanks a log :)

I am using it with fastify and I was required to add process.env.HOST to the listen too. Something like

const port = process.env.PORT ?? 3000;
const host = process.env.HOST || '0.0.0.0';

.....
await app.listen(port, host);

Enter fullscreen mode Exit fullscreen mode