Adding env var to change back end

This commit is contained in:
Chris Troutner
2026-07-15 10:05:11 -07:00
parent 46c03a71b5
commit 1170dcb066
2 changed files with 6 additions and 1 deletions
+3
View File
@@ -0,0 +1,3 @@
# psf-memo-db REST API base URL (no trailing slash).
# Used at build time by Create React App (must be prefixed with REACT_APP_).
REACT_APP_MEMO_DB_URL=http://localhost:5021
+3 -1
View File
@@ -14,7 +14,9 @@ const config = {
ghRepo: 'https://github.com/Permissionless-Software-Foundation/bch-wallet-web3-spa',
radicleUrl: 'https://app.radicle.network/seeds/maple.radicle.garden/rad:git:hnrkd5cjwwb5tzx37hq9uqm5ubon7ee468xcy/remotes/hyyycncbn9qzqmobnhjq9rry6t4mbjiadzjoyhaknzxjcz3cxkpfpc',
backend: 'http://localhost:5021'
// Override at build time with REACT_APP_MEMO_DB_URL
// (e.g. https://api.mydomain.com). Default suits local memo-db.
backend: process.env.REACT_APP_MEMO_DB_URL || 'http://localhost:5021'
}