diff options
author | Francesco Agosti <francesco.agosti93@gmail.com> | 2018-07-14 04:35:01 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-14 04:35:01 +0800 |
commit | ab5cd95cccff7b776d168036394203261b354aae (patch) | |
tree | d011565b1c95d4682381f8f573afadf98911e396 /packages/website/ts/utils/configs.ts | |
parent | 26363931ed8ba35a55073d00c4fe128c7e616acc (diff) | |
parent | b70f5d1a1efcb3b07673aa3b4bc7bc2318f55462 (diff) | |
download | dexon-sol-tools-ab5cd95cccff7b776d168036394203261b354aae.tar dexon-sol-tools-ab5cd95cccff7b776d168036394203261b354aae.tar.gz dexon-sol-tools-ab5cd95cccff7b776d168036394203261b354aae.tar.bz2 dexon-sol-tools-ab5cd95cccff7b776d168036394203261b354aae.tar.lz dexon-sol-tools-ab5cd95cccff7b776d168036394203261b354aae.tar.xz dexon-sol-tools-ab5cd95cccff7b776d168036394203261b354aae.tar.zst dexon-sol-tools-ab5cd95cccff7b776d168036394203261b354aae.zip |
Merge pull request #867 from 0xProject/bug/website/txhash-error
Only upload sourcemaps to rollbar on live deploys, and handle NaN error by using 0
Diffstat (limited to 'packages/website/ts/utils/configs.ts')
-rw-r--r-- | packages/website/ts/utils/configs.ts | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/packages/website/ts/utils/configs.ts b/packages/website/ts/utils/configs.ts index 97aabd13d..a1c64f9cb 100644 --- a/packages/website/ts/utils/configs.ts +++ b/packages/website/ts/utils/configs.ts @@ -1,11 +1,6 @@ -import * as _ from 'lodash'; -import { Environments, OutdatedWrappedEtherByNetworkId, PublicNodeUrlsByNetworkId } from 'ts/types'; +import { OutdatedWrappedEtherByNetworkId, PublicNodeUrlsByNetworkId } from 'ts/types'; const BASE_URL = window.location.origin; -const isDevelopment = _.includes( - ['https://0xproject.localhost:3572', 'https://localhost:3572', 'https://127.0.0.1'], - BASE_URL, -); const INFURA_API_KEY = 'T5WSC8cautR4KXyYgsRs'; export const configs = { @@ -19,9 +14,8 @@ export const configs = { DEFAULT_TRACKED_TOKEN_SYMBOLS: ['WETH', 'ZRX'], DOMAIN_STAGING: 'staging-0xproject.s3-website-us-east-1.amazonaws.com', DOMAIN_DOGFOOD: 'dogfood.0xproject.com', - DOMAIN_DEVELOPMENT: '0xproject.localhost:3572', + DOMAINS_DEVELOPMENT: ['0xproject.localhost:3572', 'localhost:3572', '127.0.0.1'], DOMAIN_PRODUCTION: '0xproject.com', - ENVIRONMENT: isDevelopment ? Environments.DEVELOPMENT : Environments.PRODUCTION, GOOGLE_ANALYTICS_ID: 'UA-98720122-1', LAST_LOCAL_STORAGE_FILL_CLEARANCE_DATE: '2017-11-22', LAST_LOCAL_STORAGE_TRACKED_TOKEN_CLEARANCE_DATE: '2018-7-5', |