diff --git a/.env.development b/.env.development index f8c15c3..0970a4e 100644 --- a/.env.development +++ b/.env.development @@ -2,4 +2,4 @@ # These are automatically loaded when running 'npm start' REACT_APP_DEX_SERVER=http://localhost:5700 -#REACT_APP_NOSTR_REST_API_URL=http://localhost:5942 \ No newline at end of file +REACT_APP_NOSTR_REST_API_URL=http://localhost:5942 diff --git a/src/config/index.js b/src/config/index.js index d5d775e..ebe62a5 100644 --- a/src/config/index.js +++ b/src/config/index.js @@ -21,8 +21,9 @@ const config = { nostrTopic: 'bch-dex-test-topic-02', // REST API endpoint for Nostr relay interactions (primary interface) - nostrRestApiUrl: 'https://nostr-relay-api.fullstackcash.net', - // nostrRestApiUrl: 'http://localhost:5942', + nostrRestApiUrl: + process.env.REACT_APP_NOSTR_REST_API_URL || + 'https://nostr-relay-api.psfoundation.info', // Legacy relay URLs kept for reference (may be used in tags, but actual connections use REST API) nostrRelay: 'wss://nostr.fullstackcash.net',