Skip to content

Commit

Permalink
fix(docker): add CHAIN_ID to env (#1080)
Browse files Browse the repository at this point in the history
  • Loading branch information
dasein108 authored Dec 24, 2023
1 parent ab22a42 commit f1ff9bc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ services:
- '3000:3000'
environment:
- NODE_OPTIONS=--max-old-space-size=8192
- CHAIN_ID=bostrom
- CYBER_NODE_URL_API=https://rpc.bostrom.cybernode.ai
- CYBER_NODE_URL_WS=wss://rpc.bostrom.cybernode.ai/websocket
- CYBER_NODE_URL_LCD=https://lcd.bostrom.cybernode.ai
Expand Down
2 changes: 1 addition & 1 deletion src/utils/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const LOCALSTORAGE_CHAIN_ID = localStorage.getItem('chainId');
const CHAIN_PARAMS_LOCALSTORAGE = localStorage.getItem('CHAIN_PARAMS');

let CHAIN_PARAMS = {
CHAIN_ID: Networks.BOSTROM,
CHAIN_ID: process.env.CHAIN_ID || Networks.BOSTROM,
DENOM_CYBER: 'boot',
DENOM_LIQUID_TOKEN: 'hydrogen',
DENOM_CYBER_G: `GBOOT`,
Expand Down
2 changes: 2 additions & 0 deletions webpack.config.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ const config = {
new webpack.DefinePlugin({
'process.env.IPFS_DEPLOY': JSON.stringify(process.env.IPFS_DEPLOY),
'process.env.COMMIT_SHA': JSON.stringify(process.env.COMMIT_SHA),
'process.env.CHAIN_ID': JSON.stringify(process.env.CHAIN_ID),

'process.env.CYBER_NODE_URL_API': JSON.stringify(
process.env.CYBER_NODE_URL_API
),
Expand Down

0 comments on commit f1ff9bc

Please sign in to comment.