File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
packages/next/src/views/Root Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import type { I18n } from '@payloadcms/translations'
2
2
import type { Metadata } from 'next'
3
3
import type { SanitizedConfig } from 'payload/types'
4
4
5
+ import { WithServerSideProps } from '@payloadcms/ui/elements/WithServerSideProps'
5
6
import { DefaultTemplate } from '@payloadcms/ui/templates/Default'
6
7
import { MinimalTemplate } from '@payloadcms/ui/templates/Minimal'
7
8
import { notFound , redirect } from 'next/navigation.js'
@@ -82,7 +83,16 @@ export const RootPage = async ({
82
83
}
83
84
84
85
const RenderedView = (
85
- < DefaultView initPageResult = { initPageResult } params = { params } searchParams = { searchParams } />
86
+ < WithServerSideProps
87
+ Component = { DefaultView }
88
+ serverOnlyProps = {
89
+ {
90
+ initPageResult,
91
+ params,
92
+ searchParams,
93
+ } as any
94
+ }
95
+ />
86
96
)
87
97
88
98
return (
You can’t perform that action at this time.
0 commit comments