create-puck-app 0.17.0-canary.2d82115 → 0.17.0-canary.361e5f9
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.
package/package.json
CHANGED
@@ -16,10 +16,11 @@ import { Metadata } from "next";
|
|
16
16
|
import { getPage } from "../../lib/get-page";
|
17
17
|
|
18
18
|
export async function generateMetadata({
|
19
|
-
params
|
19
|
+
params,
|
20
20
|
}: {
|
21
|
-
params: { puckPath: string[] }
|
21
|
+
params: Promise<{ puckPath: string[] }>;
|
22
22
|
}): Promise<Metadata> {
|
23
|
+
const { puckPath = [] } = await params;
|
23
24
|
const path = `/${puckPath.join("/")}`;
|
24
25
|
|
25
26
|
return {
|
@@ -28,10 +29,11 @@ export async function generateMetadata({
|
|
28
29
|
}
|
29
30
|
|
30
31
|
export default async function Page({
|
31
|
-
params
|
32
|
+
params,
|
32
33
|
}: {
|
33
|
-
params: { puckPath: string[] }
|
34
|
+
params: Promise<{ puckPath: string[] }>;
|
34
35
|
}) {
|
36
|
+
const { puckPath = [] } = await params;
|
35
37
|
const path = `/${puckPath.join("/")}`;
|
36
38
|
const data = getPage(path);
|
37
39
|
|
@@ -17,10 +17,11 @@ import { Metadata } from "next";
|
|
17
17
|
import { getPage } from "../../../lib/get-page";
|
18
18
|
|
19
19
|
export async function generateMetadata({
|
20
|
-
params
|
20
|
+
params,
|
21
21
|
}: {
|
22
|
-
params: { puckPath: string[] }
|
22
|
+
params: Promise<{ puckPath: string[] }>;
|
23
23
|
}): Promise<Metadata> {
|
24
|
+
const { puckPath = [] } = await params;
|
24
25
|
const path = `/${puckPath.join("/")}`;
|
25
26
|
|
26
27
|
return {
|
@@ -29,10 +30,11 @@ export async function generateMetadata({
|
|
29
30
|
}
|
30
31
|
|
31
32
|
export default async function Page({
|
32
|
-
params
|
33
|
+
params,
|
33
34
|
}: {
|
34
|
-
params: { puckPath: string[] }
|
35
|
+
params: Promise<{ puckPath: string[] }>;
|
35
36
|
}) {
|
37
|
+
const { puckPath = [] } = await params;
|
36
38
|
const path = `/${puckPath.join("/")}`;
|
37
39
|
const data = getPage(path);
|
38
40
|
|
@@ -2,4 +2,4 @@
|
|
2
2
|
/// <reference types="next/image-types/global" />
|
3
3
|
|
4
4
|
// NOTE: This file should not be edited
|
5
|
-
// see https://nextjs.org/docs/app/
|
5
|
+
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
|
@@ -11,14 +11,14 @@
|
|
11
11
|
"dependencies": {
|
12
12
|
"@measured/puck": "{{puckVersion}}",
|
13
13
|
"classnames": "^2.3.2",
|
14
|
-
"next": "^
|
15
|
-
"react": "^
|
16
|
-
"react-dom": "^
|
14
|
+
"next": "^15.1.0",
|
15
|
+
"react": "^19.0.0",
|
16
|
+
"react-dom": "^19.0.0"
|
17
17
|
},
|
18
18
|
"devDependencies": {
|
19
19
|
"@types/node": "^17.0.12",
|
20
|
-
"@types/react": "^
|
21
|
-
"@types/react-dom": "^
|
20
|
+
"@types/react": "^19.0.1",
|
21
|
+
"@types/react-dom": "^19.0.2",
|
22
22
|
"eslint-config-custom": "*",
|
23
23
|
"typescript": "^5.5.4"
|
24
24
|
}
|