relay

tcmts.atproto.relay · #h7zr7sot · function · runs on the server

uses process

The relay asked who has records of a collection: configure's relay, else $ATPROTO_RELAY, else Bluesky's.

import { ATPROTO_CONFIG } from "#codebase/tcmts/atproto";

export const relay = (): string =>
  (ATPROTO_CONFIG.relay ?? process.env.ATPROTO_RELAY)?.replace(/\/+$/, "") ||
  "https://relay1.us-east.bsky.network"

uses

used by