File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ if (!USER_FUNCTION) {
96
96
process . exit ( 1 ) ;
97
97
}
98
98
99
- const SERVER = getServer ( USER_FUNCTION ! , SIGNATURE_TYPE ! ) ;
99
+ const SERVER = getServer ( USER_FUNCTION ! , SIGNATURE_TYPE ! , TARGET ) ;
100
100
const ERROR_HANDLER = new ErrorHandler ( SERVER ) ;
101
101
SERVER . listen ( PORT , ( ) => {
102
102
ERROR_HANDLER . register ( ) ;
Original file line number Diff line number Diff line change @@ -548,13 +548,14 @@ export class ErrorHandler {
548
548
*/
549
549
export function getServer (
550
550
userFunction : HandlerFunction ,
551
- functionSignatureType : SignatureType
551
+ functionSignatureType : SignatureType ,
552
+ functionTarget : string
552
553
) : http . Server {
553
554
// App to use for function executions.
554
555
const app = express ( ) ;
555
556
556
557
// Set request-specific values in the very first middleware.
557
- app . use ( '/*' , ( req , res , next ) => {
558
+ app . use ( `/ ${ functionTarget } ` , ( req , res , next ) => {
558
559
latestRes = res ;
559
560
res . locals . functionExecutionFinished = false ;
560
561
next ( ) ;
You can’t perform that action at this time.
0 commit comments