use environement variables for config
This commit is contained in:
parent
d35b8dc2a4
commit
89ba2ee6d4
@ -3,23 +3,23 @@
|
|||||||
|
|
||||||
# Netlify Environment Variables
|
# Netlify Environment Variables
|
||||||
# https://www.netlify.com/docs/continuous-deployment/#environment-variables
|
# https://www.netlify.com/docs/continuous-deployment/#environment-variables
|
||||||
REACT_APP_VERSION=$npm_package_version
|
NX_VERSION=$npm_package_version
|
||||||
REACT_APP_REPOSITORY_URL=$REPOSITORY_URL
|
NX_REPOSITORY_URL=$REPOSITORY_URL
|
||||||
REACT_APP_BRANCH=$BRANCH
|
NX_BRANCH=$BRANCH
|
||||||
REACT_APP_PULL_REQUEST=$PULL_REQUEST
|
NX_PULL_REQUEST=$PULL_REQUEST
|
||||||
REACT_APP_HEAD=$HEAD
|
NX_HEAD=$HEAD
|
||||||
REACT_APP_COMMIT_REF=$COMMIT_REF
|
NX_COMMIT_REF=$COMMIT_REF
|
||||||
REACT_APP_CONTEXT=$CONTEXT
|
NX_CONTEXT=$CONTEXT
|
||||||
REACT_APP_REVIEW_ID=$REVIEW_ID
|
NX_REVIEW_ID=$REVIEW_ID
|
||||||
REACT_APP_INCOMING_HOOK_TITLE=$INCOMING_HOOK_TITLE
|
NX_INCOMING_HOOK_TITLE=$INCOMING_HOOK_TITLE
|
||||||
REACT_APP_INCOMING_HOOK_URL=$INCOMING_HOOK_URL
|
NX_INCOMING_HOOK_URL=$INCOMING_HOOK_URL
|
||||||
REACT_APP_INCOMING_HOOK_BODY=$INCOMING_HOOK_BODY
|
NX_INCOMING_HOOK_BODY=$INCOMING_HOOK_BODY
|
||||||
REACT_APP_URL=$URL
|
NX_URL=$URL
|
||||||
REACT_APP_DEPLOY_URL=$DEPLOY_URL
|
NX_DEPLOY_URL=$DEPLOY_URL
|
||||||
REACT_APP_DEPLOY_PRIME_URL=$DEPLOY_PRIME_URL
|
NX_DEPLOY_PRIME_URL=$DEPLOY_PRIME_URL
|
||||||
|
|
||||||
# App configuration variables
|
# App configuration variables
|
||||||
REACT_APP_CHAIN_EXPLORER_URL = "https://explorer.vega.trading/.netlify/functions/chain-explorer-api"
|
NX_CHAIN_EXPLORER_URL = "https://explorer.vega.trading/.netlify/functions/chain-explorer-api"
|
||||||
REACT_APP_TENDERMINT_URL = "https://lb.testnet.vega.xyz/tm"
|
NX_TENDERMINT_URL = "https://lb.testnet.vega.xyz/tm"
|
||||||
REACT_APP_TENDERMINT_WEBSOCKET_URL = "wss://lb.testnet.vega.xyz/tm/websocket"
|
NX_TENDERMINT_WEBSOCKET_URL = "wss://lb.testnet.vega.xyz/tm/websocket"
|
||||||
REACT_APP_VEGA_URL = "https://lb.testnet.vega.xyz/query"
|
NX_VEGA_URL = "https://lb.testnet.vega.xyz/query"
|
||||||
|
@ -2,7 +2,7 @@ module.exports = {
|
|||||||
client: {
|
client: {
|
||||||
service: {
|
service: {
|
||||||
name: 'vega',
|
name: 'vega',
|
||||||
url: process.env.REACT_APP_VEGA_URL,
|
url: process.env.NX_VEGA_URL,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -7,7 +7,7 @@ export const Footer = () => {
|
|||||||
<div>Reading Vega Fairground data from </div>
|
<div>Reading Vega Fairground data from </div>
|
||||||
<div>
|
<div>
|
||||||
{/* Version/commit hash: {packageJson.version} / */}
|
{/* Version/commit hash: {packageJson.version} / */}
|
||||||
{process.env['REACT_APP_COMMIT_REF'] || 'dev'}
|
{process.env['NX_COMMIT_REF'] || 'dev'}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</footer>
|
</footer>
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
export const DATA_SOURCES = {
|
export const DATA_SOURCES = {
|
||||||
chainExplorerUrl:
|
chainExplorerUrl: process.env['NX_CHAIN_EXPLORER_URL'] as string,
|
||||||
'https://explorer.vega.trading/.netlify/functions/chain-explorer-api',
|
tendermintUrl: process.env['NX_TENDERMINT_URL'] as string,
|
||||||
tendermintUrl: 'https://lb.testnet.vega.xyz/tm',
|
tendermintWebsocketUrl: process.env['NX_TENDERMINT_WEBSOCKET_URL'] as string,
|
||||||
tendermintWebsocketUrl: 'wss://lb.testnet.vega.xyz/tm/websocket',
|
dataNodeUrl: process.env['NX_VEGA_URL'] as string,
|
||||||
dataNodeUrl: 'https://lb.testnet.vega.xyz/query',
|
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user