aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-20 07:38:09 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-20 07:38:09 +0800
commit497385818b42f298c777ce3fbeb3e2d55a2bdc64 (patch)
tree97c32bc1612cc80ea3c960bb86b8d7e01f9678ae /packages/instant
parentc30ae762bf62faebfea58eb0874366a851b19d91 (diff)
downloaddexon-0x-contracts-497385818b42f298c777ce3fbeb3e2d55a2bdc64.tar
dexon-0x-contracts-497385818b42f298c777ce3fbeb3e2d55a2bdc64.tar.gz
dexon-0x-contracts-497385818b42f298c777ce3fbeb3e2d55a2bdc64.tar.bz2
dexon-0x-contracts-497385818b42f298c777ce3fbeb3e2d55a2bdc64.tar.lz
dexon-0x-contracts-497385818b42f298c777ce3fbeb3e2d55a2bdc64.tar.xz
dexon-0x-contracts-497385818b42f298c777ce3fbeb3e2d55a2bdc64.tar.zst
dexon-0x-contracts-497385818b42f298c777ce3fbeb3e2d55a2bdc64.zip
Check for instant heap production credentials in pre-publish step
Diffstat (limited to 'packages/instant')
-rw-r--r--packages/instant/webpack.config.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/packages/instant/webpack.config.js b/packages/instant/webpack.config.js
index 7139ced16..41276809c 100644
--- a/packages/instant/webpack.config.js
+++ b/packages/instant/webpack.config.js
@@ -15,10 +15,7 @@ const HEAP_PRODUCTION_ENV_VAR_NAME = 'INSTANT_HEAP_ANALYTICS_ID_PRODUCTION';
const HEAP_DEVELOPMENT_ENV_VAR_NAME = 'INSTANT_HEAP_ANALYTICS_ID_DEVELOPMENT';
const getHeapAnalyticsId = modeName => {
if (modeName === 'production') {
- if (process.env[HEAP_PRODUCTION_ENV_VAR_NAME]) {
- return process.env[HEAP_PRODUCTION_ENV_VAR_NAME];
- }
- throw new Error(`Must have ${HEAP_PRODUCTION_ENV_VAR_NAME} set`);
+ return process.env[HEAP_PRODUCTION_ENV_VAR_NAME];
}
if (modeName === 'development') {