mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
fix(nuxt): don't disable vue endpoint in dev mode (#21524)
This commit is contained in:
parent
ce096da965
commit
03186d6d44
@ -295,7 +295,7 @@ export async function initNitro (nuxt: Nuxt & { _nitro?: Nitro }) {
|
||||
handler: resolve(distDir, 'core/runtime/nitro/renderer')
|
||||
})
|
||||
|
||||
if (nuxt.options.experimental.noVueServer) {
|
||||
if (!nuxt.options.dev && nuxt.options.experimental.noVueServer) {
|
||||
nitro.hooks.hook('rollup:before', (nitro) => {
|
||||
if (nitro.options.preset === 'nitro-prerender') { return }
|
||||
const nuxtErrorHandler = nitro.options.handlers.findIndex(h => h.route === '/__nuxt_error')
|
||||
|
Loading…
Reference in New Issue
Block a user