Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
nksaraf committed Dec 30, 2023
1 parent 5d10903 commit 816e65d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vinxi/lib/router-modes.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,10 +255,10 @@ const routerModes = {

const { createViteHandler } = await import("./dev-server.js");
const viteServer = await createViteHandler(router, app, serveConfig);
const viteHandler = fromNodeMiddleware(viteServer.middlewares);
const viteMiddleware = fromNodeMiddleware(viteServer.middlewares);

const handler = eventHandler(async (event) => {
await viteHandler(event);
await viteMiddleware(event);
if (event.handled) {
return;
}
Expand Down

0 comments on commit 816e65d

Please sign in to comment.