mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 07:32:01 +00:00
fix(nuxi): backward compatibility for kit <= rc.10 without useNitro
(#7593)
This commit is contained in:
parent
43d1eac09d
commit
2b57bfe36c
@ -28,7 +28,8 @@ export default defineNuxtCommand({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
const nitro = useNitro()
|
// Use ? for backward compatibility for Nuxt <= RC.10
|
||||||
|
const nitro = useNitro?.()
|
||||||
|
|
||||||
await clearDir(nuxt.options.buildDir)
|
await clearDir(nuxt.options.buildDir)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user