Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
Update packages/vite/src/runtime/server.mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Mar 31, 2022
1 parent 468e0e5 commit 685dbae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/vite/src/runtime/server.mjs
Expand Up @@ -50,6 +50,8 @@ 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)
Expand Down

0 comments on commit 685dbae

Please sign in to comment.