Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
Add staging to environments list in config
Browse files Browse the repository at this point in the history
  • Loading branch information
janedegtiareva committed Aug 28, 2019
1 parent 6122cb6 commit fcc8d35
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
node_modules
tmp-project
neardev/*
package-lock.json
yarn.lock
19 changes: 18 additions & 1 deletion blank_project/src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

function getConfig(env) {
switch (env) {

case 'production':
case 'development':
return {
Expand All @@ -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',
Expand All @@ -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,
Expand Down

0 comments on commit fcc8d35

Please sign in to comment.