1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-11-15 01:34:57 +01:00
market/app.config.js

25 lines
474 B
JavaScript
Raw Normal View History

2020-07-22 12:27:57 +02:00
const { ConfigHelper } = require('@oceanprotocol/lib')
2020-07-20 17:04:38 +02:00
2020-07-22 13:56:42 +02:00
const network = process.env.GATSBY_NETWORK || 'rinkeby'
2020-07-22 13:36:49 +02:00
function getDefaultOceanConfig() {
return new ConfigHelper().getConfig(
2020-07-22 13:56:42 +02:00
network,
2020-07-22 13:36:49 +02:00
process.env.GATSBY_INFURA_PROJECT_ID
)
}
2020-07-20 17:04:38 +02:00
2020-07-22 13:36:49 +02:00
const appConfig = {
2020-07-08 15:15:02 +02:00
oceanConfig: {
2020-07-22 13:36:49 +02:00
...getDefaultOceanConfig(),
2020-07-08 15:15:02 +02:00
verbose: 3
2020-07-14 17:41:45 +02:00
},
2020-07-22 13:56:42 +02:00
network,
2020-07-22 12:20:55 +02:00
infuraProjectId: process.env.GATSBY_INFURA_PROJECT_ID || 'xxx'
2020-07-08 15:15:02 +02:00
}
2020-07-22 13:36:49 +02:00
module.exports = {
getDefaultOceanConfig,
appConfig
}