Skip to content

Commit b57570a

Browse files
Merge pull request #40 from HORNET-Storage/refactor/rename-subscribers-component
Update config to use http://localhost:10002 as base URL in demo mode
2 parents 82d05f7 + e32c922 commit b57570a

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.env.development

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
REACT_APP_BASE_URL=http://localhost:9002
22
REACT_APP_WALLET_BASE_URL=http://localhost:9003
33
REACT_APP_ASSETS_BUCKET=http://localhost
4-
REACT_APP_DEMO_MODE=false
4+
REACT_APP_DEMO_MODE=true
55

66
# More info https://create-react-app.dev/docs/advanced-configuration
77
ESLINT_NO_DEV_ERRORS=true

src/config/config.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
// config.ts
22
const config = {
3-
baseURL: process.env.NODE_ENV === 'production'
4-
? window.location.origin || 'http://localhost:9002'
5-
: process.env.REACT_APP_BASE_URL || 'http://localhost:9002',
3+
baseURL: process.env.REACT_APP_DEMO_MODE === 'true'
4+
? 'http://localhost:10002'
5+
: process.env.NODE_ENV === 'production'
6+
? window.location.origin || 'http://localhost:9002'
7+
: process.env.REACT_APP_BASE_URL || 'http://localhost:9002',
68
isDemoMode: process.env.REACT_APP_DEMO_MODE === 'true',
79
walletBaseURL: process.env.REACT_APP_WALLET_BASE_URL?.trim() || 'http://localhost:9003',
810

0 commit comments

Comments
 (0)