Skip to content

Commit c2a9a7d

Browse files
committed
update 02
1 parent 2faac8e commit c2a9a7d

File tree

7 files changed

+20
-15
lines changed

7 files changed

+20
-15
lines changed

04-frameworks/08-nextjs/02-navigation/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ export default CarPage;
128128
> [Dynamic routes](https://nextjs.org/docs/app/building-your-application/routing/dynamic-routes)
129129
>
130130
> [i18n-routing](https://nextjs.org/docs/app/building-your-application/routing/internationalization)
131+
>
132+
> [Warning `params` should be awaited before using its properties](https://nextjs.org/docs/messages/sync-dynamic-apis)
131133
132134
Open `http://localhost:3000/cars/audi`;
133135

04-frameworks/08-nextjs/02-navigation/api-server/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
"author": "Lemoncode",
1010
"license": "MIT",
1111
"dependencies": {
12-
"@hono/node-server": "^1.12.2",
13-
"hono": "^4.5.11"
12+
"@hono/node-server": "^1.13.8",
13+
"hono": "^4.6.20"
1414
},
1515
"devDependencies": {
16-
"tsx": "^4.19.0"
16+
"tsx": "^4.19.2"
1717
}
1818
}

04-frameworks/08-nextjs/02-navigation/app/layout.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ const RootLayout = (props: Props) => {
88
const { children } = props;
99
return (
1010
<html lang="en">
11-
<body>{children}</body>
11+
<body>
12+
<main>{children}</main>
13+
</body>
1214
</html>
1315
);
1416
};

04-frameworks/08-nextjs/02-navigation/next-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
/// <reference types="next/image-types/global" />
33

44
// NOTE: This file should not be edited
5-
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.
5+
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

04-frameworks/08-nextjs/02-navigation/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
"author": "Lemoncode",
1313
"license": "MIT",
1414
"dependencies": {
15-
"next": "^14.2.9",
16-
"react": "^18.3.1",
17-
"react-dom": "^18.3.1"
15+
"next": "^15.1.6",
16+
"react": "^19.0.0",
17+
"react-dom": "^19.0.0"
1818
},
1919
"devDependencies": {
20-
"@types/node": "22.5.4",
21-
"@types/react": "^18.3.5",
22-
"@types/react-dom": "^18.3.0",
23-
"typescript": "^5.6.2"
20+
"@types/node": "22.13.0",
21+
"@types/react": "^19.0.8",
22+
"@types/react-dom": "^19.0.3",
23+
"typescript": "^5.7.3"
2424
}
2525
}

04-frameworks/08-nextjs/02-navigation/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"compilerOptions": {
3+
"target": "ES2017",
34
"lib": [
45
"dom",
56
"dom.iterable",

04-frameworks/08-nextjs/03-boilerplate/api-server/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
"author": "Lemoncode",
1010
"license": "MIT",
1111
"dependencies": {
12-
"@hono/node-server": "^1.12.2",
13-
"hono": "^4.5.11"
12+
"@hono/node-server": "^1.13.8",
13+
"hono": "^4.6.20"
1414
},
1515
"devDependencies": {
16-
"tsx": "^4.19.0"
16+
"tsx": "^4.19.2"
1717
}
1818
}

0 commit comments

Comments
 (0)