diff --git a/packages/vite/src/runtime/server.mjs b/packages/vite/src/runtime/server.mjs index cdaccbc983..83b7c956e6 100644 --- a/packages/vite/src/runtime/server.mjs +++ b/packages/vite/src/runtime/server.mjs @@ -50,6 +50,9 @@ async function writeManifest () { let render export default async (ssrContext) => { + // Workaround for stub mode + // https://github.com/nuxt/framework/pull/3983 + process.server = true render = render || (await runner.executeFile(entry)).default const result = await render(ssrContext) await writeManifest()