From f954537929af3ebafb42cdbdf3323f51e9e14234 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Wed, 15 Jul 2020 12:15:17 +0200 Subject: [PATCH] fix env vars --- .env.example | 16 ++++++++-------- app.config.js | 9 +++++---- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/.env.example b/.env.example index 836cd86e7..f81830059 100644 --- a/.env.example +++ b/.env.example @@ -1,13 +1,13 @@ GATSBY_INFURA_PROJECT_ID="xxx" # Local config -NODE_URI='http://localhost:8545' -METADATA_STORE_URI='http://aquarius:5000' -PROVIDER_URI='http://localhost:8030' -FACTORY_ADDRESS='0x068ed00cf0441e4829d9784fcbe7b9e26d4bd8d0' +GATSBY_NODE_URI='http://localhost:8545' +GATSBY_METADATA_STORE_URI='http://aquarius:5000' +GATSBY_PROVIDER_URI='http://localhost:8030' +GATSBY_FACTORY_ADDRESS='0x068ed00cf0441e4829d9784fcbe7b9e26d4bd8d0' # Rinkeby -#NODE_URI='https://pacific.oceanprotocol.com' -#METADATA_STORE_URI='https://aquarius.rinkeby.v3.dev-ocean.com' -#PROVIDER_URI='https://provider.rinkeby.v3.dev-ocean.com' -#FACTORY_ADDRESS='0xeD792C5FcC8bF3322a6ba89A6e51eF0B6fB3C530' +#GATSBY_NODE_URI='https://pacific.oceanprotocol.com' +#GATSBY_METADATA_STORE_URI='https://aquarius.rinkeby.v3.dev-ocean.com' +#GATSBY_PROVIDER_URI='https://provider.rinkeby.v3.dev-ocean.com' +#GATSBY_FACTORY_ADDRESS='0xeD792C5FcC8bF3322a6ba89A6e51eF0B6fB3C530' diff --git a/app.config.js b/app.config.js index 9f21ee0f8..a36a47580 100644 --- a/app.config.js +++ b/app.config.js @@ -1,13 +1,14 @@ module.exports = { oceanConfig: { - nodeUri: process.env.NODE_URI || 'https://pacific.oceanprotocol.com', + nodeUri: process.env.GATSBY_NODE_URI || 'https://pacific.oceanprotocol.com', metadataStoreUri: - process.env.METADATA_STORE_URI || + process.env.GATSBY_METADATA_STORE_URI || 'https://aquarius.rinkeby.v3.dev-ocean.com', providerUri: - process.env.PROVIDER_URI || 'https://provider.rinkeby.v3.dev-ocean.com', + process.env.GATSBY_PROVIDER_URI || + 'https://provider.rinkeby.v3.dev-ocean.com', factoryAddress: - process.env.FACTORY_ADDRESS || + process.env.GATSBY_FACTORY_ADDRESS || '0x00c6A0BC5cD0078d6Cd0b659E8061B404cfa5704', verbose: 3 },