add development-mainnet config
This commit is contained in:
parent
20e408e62f
commit
5313f01798
|
@ -0,0 +1,11 @@
|
|||
// @flow
|
||||
import devConfig from './development'
|
||||
import { TX_SERVICE_HOST, RELAY_API_URL } from '~/config/names'
|
||||
|
||||
const devMainnetConfig = {
|
||||
...devConfig,
|
||||
[TX_SERVICE_HOST]: 'https://safe-transaction.mainnet.staging.gnosisdev.com/api/v1',
|
||||
[RELAY_API_URL]: 'https://safe-relay.gnosis.io/api/v1/',
|
||||
}
|
||||
|
||||
export default devMainnetConfig
|
|
@ -5,6 +5,7 @@ import { TX_SERVICE_HOST, SIGNATURES_VIA_METAMASK, RELAY_API_URL } from '~/confi
|
|||
import devConfig from './development'
|
||||
import testConfig from './testing'
|
||||
import prodConfig from './production'
|
||||
import mainnetDevConfig from './development-mainnet'
|
||||
import mainnetProdConfig from './production-mainnet'
|
||||
|
||||
const configuration = () => {
|
||||
|
@ -20,6 +21,10 @@ const configuration = () => {
|
|||
return prodConfig
|
||||
}
|
||||
|
||||
if (process.env.REACT_APP_NETWORK === 'mainnet') {
|
||||
return mainnetDevConfig
|
||||
}
|
||||
|
||||
return devConfig
|
||||
}
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ import { TX_SERVICE_HOST, RELAY_API_URL } from '~/config/names'
|
|||
|
||||
const prodMainnetConfig = {
|
||||
...prodConfig,
|
||||
[TX_SERVICE_HOST]: 'https://safe-transaction.mainnet.staging.gnosisdev.com/api/v1',
|
||||
[TX_SERVICE_HOST]: 'https://safe-transaction.mainnet.gnosisdev.com/api/v1',
|
||||
[RELAY_API_URL]: 'https://safe-relay.gnosis.io/api/v1/',
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue