Setting defaults to production.
This commit is contained in:
parent
243d83dd33
commit
b8856d765d
|
@ -2,7 +2,7 @@ const MAINET_RPC_URL = 'https://mainnet.infura.io/'
|
||||||
const TESTNET_RPC_URL = 'https://morden.infura.io/'
|
const TESTNET_RPC_URL = 'https://morden.infura.io/'
|
||||||
const DEFAULT_RPC_URL = TESTNET_RPC_URL
|
const DEFAULT_RPC_URL = TESTNET_RPC_URL
|
||||||
const CLASSIC_RPC_URL = 'https://mainnet-nf.infura.io/'
|
const CLASSIC_RPC_URL = 'https://mainnet-nf.infura.io/'
|
||||||
const DEVELOPMENT_MODE = true
|
const DEVELOPMENT_MODE = false
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
network: {
|
network: {
|
||||||
|
|
|
@ -10,12 +10,10 @@ module.exports = configureStore
|
||||||
const middlewares = [thunkMiddleware]
|
const middlewares = [thunkMiddleware]
|
||||||
|
|
||||||
if (developmentMode) {
|
if (developmentMode) {
|
||||||
console.log('Development Mode ON.')
|
|
||||||
const loggerMiddleware = createLogger()
|
const loggerMiddleware = createLogger()
|
||||||
middlewares.push(loggerMiddleware)
|
middlewares.push(loggerMiddleware)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const createStoreWithMiddleware = applyMiddleware(...middlewares)(createStore)
|
const createStoreWithMiddleware = applyMiddleware(...middlewares)(createStore)
|
||||||
|
|
||||||
function configureStore (initialState) {
|
function configureStore (initialState) {
|
||||||
|
|
Loading…
Reference in New Issue