We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a4c5be commit c2cd194Copy full SHA for c2cd194
server.js
@@ -10,4 +10,6 @@ app.use('/login', (req, res) => {
10
});
11
12
13
-app.listen(8080, () => console.log('API is running on http://localhost:8080/login'));
+const PORT = process.env.PORT || 8080;
14
+
15
+app.listen(PORT, () => console.log(`API is running on http://localhost:${PORT}/login`));
0 commit comments