fix(nuxt): render server errors with `ssr: false` (#28834)

This commit is contained in:
Daniel Roe 2024-09-05 08:56:25 +01:00 committed by GitHub
parent 91dfab3f11
commit 181d043eaf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 3 deletions

View File

@ -158,9 +158,7 @@ const getSPARenderer = lazyCachedFunction(async () => {
const renderToString = (ssrContext: NuxtSSRContext) => {
const config = useRuntimeConfig(ssrContext.event)
ssrContext.modules = ssrContext.modules || new Set<string>()
ssrContext!.payload = {
serverRendered: false,
}
ssrContext.payload.serverRendered = false
ssrContext.config = {
public: config.public,
app: config.app,