Refactor config to use a better interface

This commit is contained in:
Alex Gleason
2023-06-10 17:15:08 -05:00
parent 8a62cb604d
commit b5643c4aba
8 changed files with 46 additions and 28 deletions

View File

@@ -1,10 +1,10 @@
import { LOCAL_DOMAIN } from '@/config.ts';
import { Conf } from '@/config.ts';
import { linkify, linkifyStr, mime, nip19, nip21 } from '@/deps.ts';
linkify.registerCustomProtocol('nostr', true);
linkify.registerCustomProtocol('wss');
const url = (path: string) => new URL(path, LOCAL_DOMAIN).toString();
const url = (path: string) => new URL(path, Conf.localDomain).toString();
const linkifyOpts: linkify.Opts = {
render: {