mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +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
|
||||
nuxtApp.ssrContext._payloadReducers = {}
|
||||
// Expose current path
|
||||
nuxtApp.payload.path = nuxtApp.ssrContext.event.path
|
||||
nuxtApp.payload.path = nuxtApp.ssrContext.url
|
||||
}
|
||||
// Expose to server renderer to create payload
|
||||
nuxtApp.ssrContext = nuxtApp.ssrContext || {} as any
|
||||
|
@ -127,7 +127,7 @@ const getSPARenderer = lazyCachedFunction(async () => {
|
||||
const renderToString = (ssrContext: NuxtSSRContext) => {
|
||||
const config = useRuntimeConfig()
|
||||
ssrContext!.payload = {
|
||||
path: ssrContext.event.path,
|
||||
path: ssrContext.url,
|
||||
_errors: {},
|
||||
serverRendered: false,
|
||||
data: {},
|
||||
|
Loading…
Reference in New Issue
Block a user