Skip to content

Commit

Permalink
fix(nuxt): don't disable vue endpoint in dev mode (#21524)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Jun 11, 2023
1 parent ce096da commit 03186d6
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 @@ -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')
Expand Down

0 comments on commit 03186d6

Please sign in to comment.