Skip to content

Commit 13f66ac

Browse files
committed
perf(app): directly passthrough req
h3 already inherits req.context
1 parent 6420d78 commit 13f66ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/internal/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ function createNitroApp(): NitroApp {
8282
let fetchHandler = (req: ServerRequest): Response | Promise<Response> => {
8383
req.context ??= {};
8484
req.context.nitro = req.context.nitro || { errors: [] };
85-
return h3App.request(req, undefined, req.context);
85+
return h3App.fetch(req);
8686
};
8787

8888
// Experimental async context support

0 commit comments

Comments
 (0)