const PORT = process.env.PORT || 5000; heroku code example Example: const port = process.env.port || 3000 const port = process.env.port || 3000