web


git clone https://radroots.dev/git/web.git
Log | Files | Refs | Submodules | README | LICENSE

lib.ts (289B)


      1 import { _env } from "$lib/_env";
      2 
      3 export const get_default_nostr_relays = (): string[] => {
      4     return Array.from(
      5         new Set(
      6             _env.DEFAULT_RELAYS.split(",")
      7                 .map((url) => url.trim())
      8                 .filter((url) => url.length > 0),
      9         ),
     10     );
     11 };