Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
perf: simplify test
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Jul 21, 2022
1 parent 7f57b8c commit 6478474
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nuxt/src/core/nitro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export async function initNitro (nuxt: Nuxt) {

// Add typed route responses
nuxt.hook('prepare:types', async (opts) => {
if (nuxt.options._prepare || !nuxt.options.dev) {
if (!nuxt.options.dev) {
await scanHandlers(nitro)
await writeTypes(nitro)
}
Expand Down

0 comments on commit 6478474

Please sign in to comment.