mirror of
https://github.com/oceanprotocol/market.git
synced 2024-11-15 01:34:57 +01:00
25 lines
474 B
JavaScript
25 lines
474 B
JavaScript
const { ConfigHelper } = require('@oceanprotocol/lib')
|
|
|
|
const network = process.env.GATSBY_NETWORK || 'rinkeby'
|
|
|
|
function getDefaultOceanConfig() {
|
|
return new ConfigHelper().getConfig(
|
|
network,
|
|
process.env.GATSBY_INFURA_PROJECT_ID
|
|
)
|
|
}
|
|
|
|
const appConfig = {
|
|
oceanConfig: {
|
|
...getDefaultOceanConfig(),
|
|
verbose: 3
|
|
},
|
|
network,
|
|
infuraProjectId: process.env.GATSBY_INFURA_PROJECT_ID || 'xxx'
|
|
}
|
|
|
|
module.exports = {
|
|
getDefaultOceanConfig,
|
|
appConfig
|
|
}
|