Skip to content

Commit 50d07c9

Browse files
committed
making http-lambda-proxy an optional dependency
1 parent b156841 commit 50d07c9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/proxy-factory.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
'use strict'
22
const fastProxy = require('fast-proxy')
3-
const lambdaProxy = require('http-lambda-proxy')
43

54
module.exports = ({ proxyType, opts, route }) => {
65
let proxy
@@ -11,7 +10,7 @@ module.exports = ({ proxyType, opts, route }) => {
1110
...(opts.fastProxy)
1211
}).proxy
1312
} else if (proxyType === 'lambda') {
14-
proxy = lambdaProxy({
13+
proxy = require('http-lambda-proxy')({
1514
target: opts.targetOverride || route.target,
1615
region: 'eu-central-1',
1716
...(route.lambdaProxy || {})

0 commit comments

Comments
 (0)