create-payload-app 3.0.0-beta.20 → 3.0.0-beta.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,22 @@
1
+ /* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
2
+ import type { Metadata } from 'next'
3
+
4
+ import config from '@payload-config'
5
+ /* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
6
+ import { NotFoundPage, generatePageMetadata } from '@payloadcms/next/views'
7
+
8
+ type Args = {
9
+ params: {
10
+ segments: string[]
11
+ }
12
+ searchParams: {
13
+ [key: string]: string | string[]
14
+ }
15
+ }
16
+
17
+ export const generateMetadata = ({ params, searchParams }: Args): Promise<Metadata> =>
18
+ generatePageMetadata({ config, params, searchParams })
19
+
20
+ const NotFound = ({ params, searchParams }: Args) => NotFoundPage({ config, params, searchParams })
21
+
22
+ export default NotFound
@@ -1,7 +1,9 @@
1
1
  /* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
2
+ import type { Metadata } from 'next'
3
+
2
4
  import config from '@payload-config'
3
5
  /* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
4
- import { RootPage } from '@payloadcms/next/views'
6
+ import { RootPage, generatePageMetadata } from '@payloadcms/next/views'
5
7
 
6
8
  type Args = {
7
9
  params: {
@@ -12,6 +14,9 @@ type Args = {
12
14
  }
13
15
  }
14
16
 
17
+ export const generateMetadata = ({ params, searchParams }: Args): Promise<Metadata> =>
18
+ generatePageMetadata({ config, params, searchParams })
19
+
15
20
  const Page = ({ params, searchParams }: Args) => RootPage({ config, params, searchParams })
16
21
 
17
22
  export default Page
@@ -1,9 +1,10 @@
1
1
  /* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
2
2
  /* DO NOT MODIFY it because it could be re-written at any time. */
3
3
  import config from '@payload-config'
4
- import { REST_DELETE, REST_GET, REST_PATCH, REST_POST } from '@payloadcms/next/routes'
4
+ import { REST_DELETE, REST_GET, REST_OPTIONS, REST_PATCH, REST_POST } from '@payloadcms/next/routes'
5
5
 
6
6
  export const GET = REST_GET(config)
7
7
  export const POST = REST_POST(config)
8
8
  export const DELETE = REST_DELETE(config)
9
9
  export const PATCH = REST_PATCH(config)
10
+ export const OPTIONS = REST_OPTIONS(config)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-payload-app",
3
- "version": "3.0.0-beta.20",
3
+ "version": "3.0.0-beta.22",
4
4
  "homepage": "https://payloadcms.com",
5
5
  "repository": {
6
6
  "type": "git",