From 58b034e169e08ff18fce1638dbf129bd3716b8da Mon Sep 17 00:00:00 2001 From: Siddharth Singh Date: Wed, 24 Apr 2024 21:38:05 +0530 Subject: [PATCH] rename DITTO_LISTEN_ON and localPort() to PORT and port() --- src/config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config.ts b/src/config.ts index 29f1d584..c4d6a9b5 100644 --- a/src/config.ts +++ b/src/config.ts @@ -40,8 +40,8 @@ class Conf { ); } - static get localPort() { - return parseInt(Deno.env.get('DITTO_LISTEN_ON') || '8000'); + static get port() { + return parseInt(Deno.env.get('PORT') || '8000'); } static get relay(): `wss://${string}` | `ws://${string}` {