Skip to content

Commit

Permalink
fix(app): enable router preemptive mode
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Jul 29, 2023
1 parent d03800d commit 2d000dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/runtime/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ function createNitroApp(): NitroApp {
},
});

const router = createRouter();
const router = createRouter({
preemptive: true,
});

h3App.use(createRouteRulesHandler());

Expand Down

0 comments on commit 2d000dd

Please sign in to comment.