mirror of
https://github.com/status-im/safe-react.git
synced 2025-02-20 05:28:08 +00:00
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
|
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
|
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
|
REACT_APP_NETWORK=mainnet yarn start
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Building
|
||||||
|
*For rinkeby:*
|
||||||
|
```
|
||||||
|
yarn build
|
||||||
|
```
|
||||||
|
|
||||||
|
*For mainnet:*
|
||||||
|
```
|
||||||
|
REACT_APP_NETWORK=mainnet yarn build
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
## Running the tests
|
## Running the tests
|
||||||
|
|
||||||
|
@ -17,10 +17,10 @@ const configuration = () => {
|
|||||||
|
|
||||||
if (process.env.NODE_ENV === 'production') {
|
if (process.env.NODE_ENV === 'production') {
|
||||||
if (process.env.REACT_APP_NETWORK === 'mainnet') {
|
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
|
return process.env.REACT_APP_NETWORK === 'mainnet' ? mainnetDevConfig : devConfig
|
||||||
|
Loading…
x
Reference in New Issue
Block a user