mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
fix(nuxt): render server errors with ssr: false
(#28834)
This commit is contained in:
parent
468ab2dc0b
commit
3c4979f2c7
@ -159,9 +159,7 @@ const getSPARenderer = lazyCachedFunction(async () => {
|
|||||||
const renderToString = (ssrContext: NuxtSSRContext) => {
|
const renderToString = (ssrContext: NuxtSSRContext) => {
|
||||||
const config = useRuntimeConfig(ssrContext.event)
|
const config = useRuntimeConfig(ssrContext.event)
|
||||||
ssrContext.modules = ssrContext.modules || new Set<string>()
|
ssrContext.modules = ssrContext.modules || new Set<string>()
|
||||||
ssrContext!.payload = {
|
ssrContext.payload.serverRendered = false
|
||||||
serverRendered: false,
|
|
||||||
}
|
|
||||||
ssrContext.config = {
|
ssrContext.config = {
|
||||||
public: config.public,
|
public: config.public,
|
||||||
app: config.app,
|
app: config.app,
|
||||||
|
Loading…
Reference in New Issue
Block a user