Skip to content

Fix R10 Error From Heroku

View on Twitter

💡 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, () => { ... });`

You might also like
Debug Requests Using a Mirror API Read tip
Secure Your VPS: Use Non-Root User Read tip
Convert cURL to JavaScript Fetch Read tip