Actually, set default LOCAL_DOMAIN based on PORT

This commit is contained in:
Alex Gleason 2024-05-16 08:10:13 -05:00
parent 0acde23c46
commit 4b07f2a12a
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ class Conf {
} }
/** Origin of the Ditto server, including the protocol and port. */ /** Origin of the Ditto server, including the protocol and port. */
static get localDomain() { 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. */ /** URL to an external Nostr viewer. */
static get externalDomain() { static get externalDomain() {