File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 11'use strict'
22
33module . exports = ( ( ) => {
4- let fastProxyLite , lambdaProxyFactory , legacyProxyFactory
4+ let fastProxyLite , httpLambdaProxy , fastProxyLegacy
55
66 return ( { proxyType, opts, route } ) => {
77 const base = opts . targetOverride || route . target
@@ -16,16 +16,16 @@ module.exports = (() => {
1616 } ) . proxy
1717
1818 case 'lambda' :
19- lambdaProxyFactory = lambdaProxyFactory || require ( 'http-lambda-proxy' )
20- return lambdaProxyFactory ( {
19+ httpLambdaProxy = httpLambdaProxy || require ( 'http-lambda-proxy' )
20+ return httpLambdaProxy ( {
2121 target : base ,
2222 region : 'eu-central-1' ,
2323 ...config
2424 } )
2525
2626 case 'http-legacy' :
27- legacyProxyFactory = legacyProxyFactory || require ( 'fast-proxy' )
28- return legacyProxyFactory ( {
27+ fastProxyLegacy = fastProxyLegacy || require ( 'fast-proxy' )
28+ return fastProxyLegacy ( {
2929 base,
3030 ...config
3131 } ) . proxy
You can’t perform that action at this time.
0 commit comments