diff --git a/packages/nuxt/src/core/nitro.ts b/packages/nuxt/src/core/nitro.ts index 608bd27cb6..05e23b8162 100644 --- a/packages/nuxt/src/core/nitro.ts +++ b/packages/nuxt/src/core/nitro.ts @@ -400,7 +400,7 @@ export async function initNitro (nuxt: Nuxt & { _nitro?: Nitro }) { if (nuxt.options.experimental.respectNoSSRHeader) { nitroConfig.handlers ||= [] nitroConfig.handlers.push({ - handler: resolve(distDir, 'core/runtime/nitro/no-ssr'), + handler: resolve(distDir, 'core/runtime/nitro/middleware/no-ssr'), middleware: true, }) }