diff --git a/lib/config.ts b/lib/config.ts index dbdc8252..a856745e 100644 --- a/lib/config.ts +++ b/lib/config.ts @@ -32,7 +32,7 @@ if (!GRAPHQL_URL || !GRAPHQL_WEBSOCKET_URL) { const NOSTR_PUBKEY = process.env.NOSTR_PUBKEY -const PAY_SERVER = GRAPHQL_URL.replace("/graphql", "").replace("api", "pay") +const PAY_SERVER = GRAPHQL_URL?.replace("/graphql", "")?.replace("api", "pay") export { GRAPHQL_URL,