Skip to content

Commit 1bed765

Browse files
committed
Use wrapped build in createRequestHandler.
1 parent 5361716 commit 1bed765

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/remix/src/utils/serverAdapters/express.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export function wrapExpressCreateRequestHandler(
4242
): (options: any) => ExpressRequestHandler {
4343
return function (this: unknown, options: any): ExpressRequestHandler {
4444
const newBuild = instrumentBuild((options as ExpressCreateRequestHandlerOptions).build);
45-
const requestHandler = origCreateRequestHandler.call(this, { ...options /* :, build newBuild */ });
45+
const requestHandler = origCreateRequestHandler.call(this, { ...options, build: newBuild });
4646

4747
return wrapExpressRequestHandler(requestHandler, newBuild);
4848
};

0 commit comments

Comments
 (0)