Skip to content
Maxim Orlov Logo

Helping Node.js developers write robust applications 🚀

Fix R10 Error From Heroku

💡 Is your Node app crashing with a R10 error when deploying to Heroku?

👉🏼 Make sure your application listens to the correct port assigned by Heroku with the `PORT` env variable.

`const PORT = process.env.PORT;
app.listen(PORT, () => { ... });`