From 37138507c126d7b2da900c833fea2af0bf153f4d Mon Sep 17 00:00:00 2001 From: Roy Li Date: Fri, 24 Apr 2020 23:08:54 +0800 Subject: [PATCH] fix: should not enable proxy on now.sh and heroku --- lib/index.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/index.ts b/lib/index.ts index 265fbe865..26f542339 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -17,8 +17,11 @@ import * as filter from './utils/filter'; import { errorHandler } from './utils/error-helper'; import { CATEGORIES } from './utils/constant'; -// Global proxy -bootstrap(); +// istanbul ignore next +if (!process.env.NOW_REGION) { + // Global proxy + bootstrap(); +} const envPath = path.resolve(process.cwd(), './.env');