Skip to content

Commit

Permalink
fix: should not enable proxy on now.sh and heroku
Browse files Browse the repository at this point in the history
  • Loading branch information
geekdada committed Apr 24, 2020
1 parent 4ad61ef commit 3713850
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down

0 comments on commit 3713850

Please sign in to comment.