configure
Tell the library how to find the network, for this process: what's given replaces what it found (see
AtprotoConfig). Without it, $ATPROTO_DIRECTORY, $ATPROTO_APPVIEW, $ATPROTO_ALLOW_LOCAL=1,
$ATPROTO_JETSTREAM and $ATPROTO_RELAY say the same, and otherwise it's the network everyone uses.
import { ATPROTO_CONFIG } from "#codebase/tcmts/atproto"; import type { AtprotoConfig } from "#codebase/tcmts/atproto"; export function configure(c: AtprotoConfig): void { Object.assign(ATPROTO_CONFIG, c); }