fix(nuxt): update path to no-ssr middleware handler

This commit is contained in:
Daniel Roe 2025-02-28 19:54:12 +00:00
parent 151cf7d490
commit a99c59fbd4
No known key found for this signature in database
GPG Key ID: CBC814C393D93268

View File

@ -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,
})
}