From fcc8d35d33ca532fa407e87837f91e7b63b8df7a Mon Sep 17 00:00:00 2001 From: Jane Date: Wed, 28 Aug 2019 15:57:18 -0700 Subject: [PATCH] Add staging to environments list in config --- .gitignore | 2 ++ blank_project/src/config.js | 19 ++++++++++++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index a51fec56..f28dc767 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,5 @@ node_modules tmp-project neardev/* +package-lock.json +yarn.lock diff --git a/blank_project/src/config.js b/blank_project/src/config.js index e7aecba7..0064308c 100644 --- a/blank_project/src/config.js +++ b/blank_project/src/config.js @@ -4,6 +4,7 @@ function getConfig(env) { switch (env) { + case 'production': case 'development': return { @@ -13,6 +14,14 @@ walletUrl: 'https://wallet.nearprotocol.com', initialBalance: 100000000, }; + case 'staging': + return { + networkId: 'staging', + nodeUrl: 'https://staging-rpc.nearprotocol.com/', + contractName: CONTRACT_NAME, + walletUrl: 'https://near-wallet-staging.onrender.com', + initialBalance: 100000000, + }; case 'local': return { networkId: 'local', @@ -34,7 +43,15 @@ case 'ci': return { networkId: 'shared-test', - nodeUrl: 'http://34.94.237.200:3030', + nodeUrl: 'http://shared-test.nearprotocol.com:3030', + contractName: CONTRACT_NAME, + masterAccount: 'test.near', + initialBalance: 100000000, + }; + case 'ci-staging': + return { + networkId: 'shared-test-staging', + nodeUrl: 'http://staging-shared-test.nearprotocol.com:3030', contractName: CONTRACT_NAME, masterAccount: 'test.near', initialBalance: 100000000,