mirror of
https://github.com/status-im/safe-react.git
synced 2025-01-12 02:54:09 +00:00
Merge pull request #651 from gnosis/hotfix/update-endpoints
Update safe relay and transaction endpoints
This commit is contained in:
commit
8b578cae05
@ -27,7 +27,7 @@ before_install:
|
||||
# Install truffle
|
||||
- yarn global add truffle
|
||||
script:
|
||||
- bash ./config/travis/build.sh
|
||||
- ./config/travis/build.sh
|
||||
after_success:
|
||||
# Pull Request - Deploy it to a review environment
|
||||
# Travis doesn't do deploy step with pull requests builds
|
||||
@ -69,6 +69,6 @@ deploy:
|
||||
on:
|
||||
tags: true
|
||||
- provider: script
|
||||
script: bash config/travis/prepare_production_deployment.sh
|
||||
script: ./config/travis/prepare_production_deployment.sh
|
||||
on:
|
||||
tags: true
|
||||
|
7
config/travis/build.sh
Normal file → Executable file
7
config/travis/build.sh
Normal file → Executable file
@ -2,7 +2,12 @@
|
||||
|
||||
export NODE_ENV=production;
|
||||
|
||||
if [[ -n "$TRAVIS_TAG" ]]; then export REACT_APP_ENV='production'; fi
|
||||
if [[ -n "$TRAVIS_TAG" ]]; then
|
||||
export REACT_APP_ENV='production';
|
||||
elif [[ "$TRAVIS_BRANCH" == "development" ]]; then
|
||||
export NODE_ENV=development;
|
||||
fi
|
||||
|
||||
|
||||
yarn lint:check
|
||||
yarn prettier:check
|
||||
|
0
config/travis/prepare_production_deployment.sh
Normal file → Executable file
0
config/travis/prepare_production_deployment.sh
Normal file → Executable file
@ -5,7 +5,7 @@ import { TX_SERVICE_HOST, RELAY_API_URL } from '~/config/names'
|
||||
const devMainnetConfig = {
|
||||
...devConfig,
|
||||
[TX_SERVICE_HOST]: 'https://safe-transaction.mainnet.staging.gnosisdev.com/api/v1/',
|
||||
[RELAY_API_URL]: 'https://safe-relay.gnosis.io/api/v1/',
|
||||
[RELAY_API_URL]: 'https://safe-relay.mainnet.staging.gnosisdev.com/api/v1/',
|
||||
}
|
||||
|
||||
export default devMainnetConfig
|
||||
|
@ -4,7 +4,7 @@ import { TX_SERVICE_HOST, SIGNATURES_VIA_METAMASK, RELAY_API_URL } from '~/confi
|
||||
const prodConfig = {
|
||||
[TX_SERVICE_HOST]: 'https://safe-transaction.rinkeby.gnosis.io/api/v1/',
|
||||
[SIGNATURES_VIA_METAMASK]: false,
|
||||
[RELAY_API_URL]: 'https://safe-relay.staging.gnosisdev.com/api/v1/',
|
||||
[RELAY_API_URL]: 'https://safe-relay.rinkeby.gnosis.io/api/v1/',
|
||||
}
|
||||
|
||||
export default prodConfig
|
||||
|
@ -5,7 +5,7 @@ import { TX_SERVICE_HOST, RELAY_API_URL } from '~/config/names'
|
||||
const stagingMainnetConfig = {
|
||||
...stagingConfig,
|
||||
[TX_SERVICE_HOST]: 'https://safe-transaction.mainnet.staging.gnosisdev.com/api/v1/',
|
||||
[RELAY_API_URL]: 'https://safe-relay.gnosis.io/api/v1/',
|
||||
[RELAY_API_URL]: 'https://safe-relay.mainnet.staging.gnosisdev.com/api/v1/',
|
||||
}
|
||||
|
||||
export default stagingMainnetConfig
|
||||
|
Loading…
x
Reference in New Issue
Block a user