create-payload-app 3.0.0-alpha.65 → 3.0.0-alpha.66
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/template/src/app/(payload)/admin/[[...segments]]/not-found.tsx +22 -0
- package/dist/template/src/app/(payload)/admin/[[...segments]]/page.tsx +6 -1
- package/dist/template/src/app/(payload)/api/[...slug]/route.ts +2 -1
- package/dist/template/src/app/(payload)/layout.tsx +0 -1
- package/package.json +16 -16
@@ -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)
|
@@ -1,6 +1,5 @@
|
|
1
1
|
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
|
2
2
|
import configPromise from '@payload-config'
|
3
|
-
import '@payloadcms/next/css'
|
4
3
|
import { RootLayout } from '@payloadcms/next/layouts'
|
5
4
|
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
|
6
5
|
import React from 'react'
|
package/package.json
CHANGED
@@ -1,17 +1,24 @@
|
|
1
1
|
{
|
2
2
|
"name": "create-payload-app",
|
3
|
-
"version": "3.0.0-alpha.
|
4
|
-
"license": "MIT",
|
5
|
-
"type": "module",
|
3
|
+
"version": "3.0.0-alpha.66",
|
6
4
|
"homepage": "https://payloadcms.com",
|
7
|
-
"bin": {
|
8
|
-
"create-payload-app": "bin/cli.js"
|
9
|
-
},
|
10
5
|
"repository": {
|
11
6
|
"type": "git",
|
12
7
|
"url": "https://github.com/payloadcms/payload.git",
|
13
8
|
"directory": "packages/create-payload-app"
|
14
9
|
},
|
10
|
+
"license": "MIT",
|
11
|
+
"type": "module",
|
12
|
+
"exports": {
|
13
|
+
"./commands": {
|
14
|
+
"import": "./src/lib/init-next.ts",
|
15
|
+
"require": "./src/lib/init-next.ts",
|
16
|
+
"types": "./src/lib/init-next.ts"
|
17
|
+
}
|
18
|
+
},
|
19
|
+
"bin": {
|
20
|
+
"create-payload-app": "bin/cli.js"
|
21
|
+
},
|
15
22
|
"files": [
|
16
23
|
"package.json",
|
17
24
|
"dist",
|
@@ -41,19 +48,12 @@
|
|
41
48
|
"@types/jest": "^27.0.3",
|
42
49
|
"@types/node": "20.12.5"
|
43
50
|
},
|
44
|
-
"exports": {
|
45
|
-
"./commands": {
|
46
|
-
"import": "./src/lib/init-next.ts",
|
47
|
-
"require": "./src/lib/init-next.ts",
|
48
|
-
"types": "./src/lib/init-next.ts"
|
49
|
-
}
|
50
|
-
},
|
51
51
|
"scripts": {
|
52
52
|
"build": "pnpm pack-template-files && pnpm typecheck && pnpm build:swc",
|
53
|
-
"typecheck": "tsc",
|
54
|
-
"pack-template-files": "tsx src/scripts/pack-template-files.ts",
|
55
53
|
"build:swc": "swc ./src -d ./dist --config-file .swcrc",
|
56
54
|
"clean": "rimraf {dist,*.tsbuildinfo}",
|
57
|
-
"
|
55
|
+
"pack-template-files": "tsx src/scripts/pack-template-files.ts",
|
56
|
+
"test": "jest",
|
57
|
+
"typecheck": "tsc"
|
58
58
|
}
|
59
59
|
}
|