nsite-ts/src/ndk.ts

11 lines
178 B
TypeScript
Raw Normal View History

2024-09-01 13:26:37 -05:00
import NDK from "@nostr-dev-kit/ndk";
import { NOSTR_RELAYS } from "./env.js";
const ndk = new NDK({
explicitRelayUrls: NOSTR_RELAYS,
});
ndk.connect();
export default ndk;