Using env vars for REST2NOSTR API

This commit is contained in:
Chris Troutner
2026-03-25 09:43:04 -07:00
parent 0a33c9a8c7
commit f65306a563
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -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
REACT_APP_NOSTR_REST_API_URL=http://localhost:5942
+3 -2
View File
@@ -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',