chore(templates): update templates with next.js promises (#8547)
Updates templates according to this PR https://github.com/payloadcms/payload/pull/8489
This commit is contained in:
@@ -18,10 +18,10 @@
|
||||
"@payloadcms/storage-vercel-blob": "beta",
|
||||
"@vercel/blob": "^0.22.3",
|
||||
"cross-env": "^7.0.3",
|
||||
"next": "15.0.0-canary.53",
|
||||
"next": "15.0.0-canary.173",
|
||||
"payload": "beta",
|
||||
"react": "19.0.0-rc-6230622a1a-20240610",
|
||||
"react-dom": "19.0.0-rc-6230622a1a-20240610",
|
||||
"react": "19.0.0-rc-3edc000d-20240926",
|
||||
"react-dom": "19.0.0-rc-3edc000d-20240926",
|
||||
"sharp": "0.32.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
@@ -30,7 +30,7 @@
|
||||
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.1",
|
||||
"autoprefixer": "^10.0.1",
|
||||
"eslint": "^8",
|
||||
"eslint-config-next": "15.0.0-canary.53",
|
||||
"eslint-config-next": "15.0.0-canary.173",
|
||||
"postcss": "^8",
|
||||
"tailwindcss": "^3.3.0",
|
||||
"typescript": "5.6.2"
|
||||
|
||||
@@ -6,12 +6,12 @@ import config from '@payload-config'
|
||||
import { RootPage, generatePageMetadata } from '@payloadcms/next/views'
|
||||
|
||||
type Args = {
|
||||
params: {
|
||||
params: Promise<{
|
||||
segments: string[]
|
||||
}
|
||||
searchParams: {
|
||||
}>
|
||||
searchParams: Promise<{
|
||||
[key: string]: string | string[]
|
||||
}
|
||||
}>
|
||||
}
|
||||
|
||||
export const generateMetadata = ({ params, searchParams }: Args): Promise<Metadata> =>
|
||||
|
||||
Reference in New Issue
Block a user