From 5ab79692d1b526c900afc420df3af0db92e16670 Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Mon, 5 Aug 2024 13:57:01 -0600 Subject: [PATCH] Use ptero port --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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