mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
fix(nuxt): always write nitro types when building (#6035)
This commit is contained in:
parent
8f7b9f904e
commit
54e672db19
@ -141,7 +141,7 @@ export async function initNitro (nuxt: Nuxt) {
|
||||
|
||||
// Add typed route responses
|
||||
nuxt.hook('prepare:types', async (opts) => {
|
||||
if (nuxt.options._prepare) {
|
||||
if (!nuxt.options.dev) {
|
||||
await scanHandlers(nitro)
|
||||
await writeTypes(nitro)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user