The comments injected into auto-generated files have gotten misformatted due to linting. Here is the proper format, where both comments are adjacent to one another: ```js /* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */ /* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */ ``` Some comments were also written with casing issues, here's an example: ```js /* DO NOT MODIFY it because it could be re-written at any time. */ ```
26 lines
735 B
TypeScript
26 lines
735 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, NotFoundPage } 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 NotFound = ({ params, searchParams }: Args) =>
|
|
NotFoundPage({ config, importMap, params, searchParams })
|
|
|
|
export default NotFound
|