mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 15:15:19 +00:00
fix(nuxt): do not embed error path in payload (#21671)
This commit is contained in:
parent
c3c56c14ab
commit
bd34a8c158
@ -266,7 +266,7 @@ export function createNuxtApp (options: CreateOptions) {
|
|||||||
// Expose payload types
|
// Expose payload types
|
||||||
nuxtApp.ssrContext._payloadReducers = {}
|
nuxtApp.ssrContext._payloadReducers = {}
|
||||||
// Expose current path
|
// Expose current path
|
||||||
nuxtApp.payload.path = nuxtApp.ssrContext.event.path
|
nuxtApp.payload.path = nuxtApp.ssrContext.url
|
||||||
}
|
}
|
||||||
// Expose to server renderer to create payload
|
// Expose to server renderer to create payload
|
||||||
nuxtApp.ssrContext = nuxtApp.ssrContext || {} as any
|
nuxtApp.ssrContext = nuxtApp.ssrContext || {} as any
|
||||||
|
@ -127,7 +127,7 @@ const getSPARenderer = lazyCachedFunction(async () => {
|
|||||||
const renderToString = (ssrContext: NuxtSSRContext) => {
|
const renderToString = (ssrContext: NuxtSSRContext) => {
|
||||||
const config = useRuntimeConfig()
|
const config = useRuntimeConfig()
|
||||||
ssrContext!.payload = {
|
ssrContext!.payload = {
|
||||||
path: ssrContext.event.path,
|
path: ssrContext.url,
|
||||||
_errors: {},
|
_errors: {},
|
||||||
serverRendered: false,
|
serverRendered: false,
|
||||||
data: {},
|
data: {},
|
||||||
|
Loading…
Reference in New Issue
Block a user