diff --git a/index.js b/index.js index a968c66..90b526f 100644 --- a/index.js +++ b/index.js @@ -87,8 +87,8 @@ app.post('/shorten', (req, res) => { // Shorten URL }); }); +port = process.env.SERVER_PORT || 3000; - -app.listen(3000, () => { +app.listen(port, () => { console.log('Server is running on port 3000'); }); \ No newline at end of file