From 444902d07d618b70f82b300a6165f32d7b4346db Mon Sep 17 00:00:00 2001 From: Emilien Devos Date: Sat, 5 Mar 2022 01:03:18 +0100 Subject: use port from env --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 98dd889..f769296 100644 --- a/index.js +++ b/index.js @@ -110,5 +110,5 @@ const responseHeadersToRemove = ["Accept-Ranges", "Content-Length", "Keep-Alive" ctx.body = "Please specify the URL in the 'url' query string."; } }); - app.listen(3000); + app.listen(process.env.PORT || 3000); })(); -- cgit v1.2.3