aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/constants.ts
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-17 02:10:55 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-17 02:10:55 +0800
commitdb7f74f99f7790297e737165a0fc9742fe3daf06 (patch)
tree534def102e052766c72bfb4d1306a9a261cc57ed /packages/instant/src/constants.ts
parent45a1899eade34e90801e3fbcba9a6789e43684f4 (diff)
downloaddexon-sol-tools-db7f74f99f7790297e737165a0fc9742fe3daf06.tar.gz
dexon-sol-tools-db7f74f99f7790297e737165a0fc9742fe3daf06.tar.zst
dexon-sol-tools-db7f74f99f7790297e737165a0fc9742fe3daf06.zip
Switch heap id on environment, and make sure app id is what we expect
Diffstat (limited to 'packages/instant/src/constants.ts')
-rw-r--r--packages/instant/src/constants.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/instant/src/constants.ts b/packages/instant/src/constants.ts
index f46b0ca21..80c93c431 100644
--- a/packages/instant/src/constants.ts
+++ b/packages/instant/src/constants.ts
@@ -16,8 +16,9 @@ export const BUY_QUOTE_UPDATE_INTERVAL_TIME_MS = ONE_SECOND_MS * 15;
export const DEFAULT_GAS_PRICE = GWEI_IN_WEI.mul(6);
export const DEFAULT_ESTIMATED_TRANSACTION_TIME_MS = ONE_MINUTE_MS * 2;
export const ETH_GAS_STATION_API_BASE_URL = 'https://ethgasstation.info';
-export const ANALYTICS_ENABLED = true; // TODO: change when we can switch on dev
+export const ANALYTICS_ENABLED = process.env.NODE_ENV === 'production' || process.env.ENABLE_HEAP;
export const HEAP_ANALYTICS_DEVELOPMENT_APP_ID = '507265531';
+export const HEAP_ANALYTICS_PRODUCTION_APP_ID = '2323640988';
export const COINBASE_API_BASE_URL = 'https://api.coinbase.com/v2';
export const PROGRESS_STALL_AT_WIDTH = '95%';
export const PROGRESS_FINISH_ANIMATION_TIME_MS = 200;