add staging config
This commit is contained in:
parent
55fcef8c49
commit
7e4501f380
13
readme.md
13
readme.md
|
@ -18,7 +18,7 @@ yarn add flow-type // recommended usage of -g flag
|
|||
|
||||
We use [yarn](https://yarnpkg.com) in our infrastacture, so we decided to go with yarn in the README
|
||||
|
||||
### Installing
|
||||
### Installing and running
|
||||
|
||||
A step by step series of examples that tell you have to get a development env running
|
||||
|
||||
|
@ -37,6 +37,17 @@ For the mainnet version:
|
|||
REACT_APP_NETWORK=mainnet yarn start
|
||||
```
|
||||
|
||||
### Building
|
||||
*For rinkeby:*
|
||||
```
|
||||
yarn build
|
||||
```
|
||||
|
||||
*For mainnet:*
|
||||
```
|
||||
REACT_APP_NETWORK=mainnet yarn build
|
||||
```
|
||||
|
||||
|
||||
## Running the tests
|
||||
|
||||
|
|
|
@ -17,10 +17,10 @@ const configuration = () => {
|
|||
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
if (process.env.REACT_APP_NETWORK === 'mainnet') {
|
||||
return process.env.REACT_APP_ENV === 'staging' ? mainnetStagingConfig : mainnetProdConfig
|
||||
return process.env.REACT_APP_ENV === 'production' ? mainnetProdConfig : mainnetStagingConfig
|
||||
}
|
||||
|
||||
return process.env.REACT_APP_ENV === 'staging' ? stagingConfig : prodConfig
|
||||
return process.env.REACT_APP_ENV === 'production' ? prodConfig : stagingConfig
|
||||
}
|
||||
|
||||
return process.env.REACT_APP_NETWORK === 'mainnet' ? mainnetDevConfig : devConfig
|
||||
|
|
Loading…
Reference in New Issue