fix(env vars): Better env var management

This commit is contained in:
Chris Troutner
2025-12-01 08:33:09 -08:00
parent 81b9c3123a
commit efb5c69010
3 changed files with 12 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
# Development environment variables
# These are automatically loaded when running 'npm start'
REACT_APP_DEX_SERVER=http://localhost:5700
#REACT_APP_NOSTR_REST_API_URL=http://localhost:5942
+5
View File
@@ -0,0 +1,5 @@
# Production environment variables
# These are automatically loaded when running 'npm run build'
REACT_APP_DEX_SERVER=https://dex-api.fullstack.cash
REACT_APP_NOSTR_REST_API_URL=https://nostr-relay-api.psfoundation.info
+2 -1
View File
@@ -14,8 +14,9 @@ const config = {
ghRepo: 'https://github.com/Permissionless-Software-Foundation/bch-dex-taker-v2',
radicleUrl: 'https://app.radicle.network/seeds/maple.radicle.garden/rad:git:hnrkd5cjwwb5tzx37hq9uqm5ubon7ee468xcy/remotes/hyyycncbn9qzqmobnhjq9rry6t4mbjiadzjoyhaknzxjcz3cxkpfpc',
dexServer: 'https://dex-api.fullstack.cash',
// dexServer: 'https://dex-api.fullstack.cash',
// dexServer: 'http://localhost:5700',
dexServer: process.env.REACT_APP_DEX_SERVER || 'https://dex-api.fullstack.cash',
nostrTopic: 'bch-dex-test-topic-02',