From 4b07f2a12a6b31fcfd062e477e35f58811afba75 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Thu, 16 May 2024 08:10:13 -0500 Subject: [PATCH] Actually, set default LOCAL_DOMAIN based on PORT --- src/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.ts b/src/config.ts index 6107547..6fe62b9 100644 --- a/src/config.ts +++ b/src/config.ts @@ -55,7 +55,7 @@ class Conf { } /** Origin of the Ditto server, including the protocol and port. */ static get localDomain() { - return Deno.env.get('LOCAL_DOMAIN') || 'http://localhost:4036'; + return Deno.env.get('LOCAL_DOMAIN') || `http://localhost:${Conf.port}`; } /** URL to an external Nostr viewer. */ static get externalDomain() {