feat: decouple l-s entrypoint
This commit is contained in:
parent
2a2c1fccc8
commit
f4d6b5e454
48 changed files with 411 additions and 232 deletions
|
|
@ -1,7 +1,7 @@
|
|||
const axios = require('axios')
|
||||
const _ = require('lodash/fp')
|
||||
|
||||
const options = require('../../../options')
|
||||
const STRIKE_BASE_URL = process.env.STRIKE_BASE_URL
|
||||
|
||||
module.exports = {
|
||||
newAddress,
|
||||
|
|
@ -9,7 +9,7 @@ module.exports = {
|
|||
cryptoNetwork
|
||||
}
|
||||
|
||||
axios.defaults.baseURL = _.get('strike.baseUrl', options)
|
||||
axios.defaults.baseURL = STRIKE_BASE_URL
|
||||
if (_.isEmpty(axios.defaults.baseURL)) {
|
||||
throw new Error('Missing Strike baseUrl!')
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue