The auth example was still on `v3.0.0-beta.24`, was missing its users collection config, and was not yet using the component paths pattern established here: #7246. This updates to latest and fixes these issues. This example can still use further improvements and housekeeping which will come in future PRs.
25 lines
718 B
TypeScript
25 lines
718 B
TypeScript
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
|
|
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
|
|
import type { Metadata } from 'next'
|
|
|
|
import config from '@payload-config'
|
|
import { generatePageMetadata, RootPage } from '@payloadcms/next/views'
|
|
|
|
import { importMap } from '../importMap.js'
|
|
|
|
type Args = {
|
|
params: Promise<{
|
|
segments: string[]
|
|
}>
|
|
searchParams: Promise<{
|
|
[key: string]: string | string[]
|
|
}>
|
|
}
|
|
export const generateMetadata = ({ params, searchParams }: Args): Promise<Metadata> =>
|
|
generatePageMetadata({ config, params, searchParams })
|
|
|
|
const Page = ({ params, searchParams }: Args) =>
|
|
RootPage({ config, importMap, params, searchParams })
|
|
|
|
export default Page
|