From f65306a563547b0e86c7440a79b5d85187d053e4 Mon Sep 17 00:00:00 2001 From: Chris Troutner Date: Wed, 25 Mar 2026 09:43:04 -0700 Subject: [PATCH] Using env vars for REST2NOSTR API --- .env.development | 2 +- src/config/index.js | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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 97d319f..da379f1 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.psfoundation.info', - // 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-relay.psfoundation.info',