mirror of
https://github.com/Permissionless-Software-Foundation/bch-dex-taker-v2.git
synced 2026-09-21 16:52:01 -07:00
Using env vars for REST2NOSTR API
This commit is contained in:
+1
-1
@@ -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
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user