mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
changing the env name and checking for undefined
This commit is contained in:
parent
22c7302062
commit
28e1b912c5
@ -4,7 +4,7 @@ module.exports = {
|
||||
// networks in their wallet.
|
||||
// Ocean Protocol contracts are deployed for: 'mainnet', 'rinkeby', 'development'
|
||||
network: process.env.GATSBY_NETWORK || 'mainnet',
|
||||
rbacUrl: process.env.RBAC_URL || 'false',
|
||||
rbacUrl: process.env.GATSBY_RBAC_URL,
|
||||
|
||||
infuraProjectId: process.env.GATSBY_INFURA_PROJECT_ID || 'xxx',
|
||||
|
||||
|
@ -6,7 +6,7 @@ export default async function rbacRequest(
|
||||
address: string
|
||||
): Promise<boolean> {
|
||||
const url = appConfig.rbacUrl
|
||||
if (url === 'false') {
|
||||
if (url === undefined) {
|
||||
return true
|
||||
} else {
|
||||
const data = {
|
||||
|
Loading…
Reference in New Issue
Block a user