Skip to content

Commit 807ca04

Browse files
committed
update 01-config
1 parent 9ef6cdd commit 807ca04

5 files changed

Lines changed: 18 additions & 14 deletions

File tree

04-frameworks/08-nextjs/01-config/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ _./package.json_
3434

3535
Before Nextjs 13, we used to create pages inside the `pages` folder and the rest of our files with our custom project structure. Now, with the new version, we can place files inside the `app` folder and every component will be a `React Server Component` by default.
3636

37-
[It's required create a `root layout`](https://nextjs.org/docs/app/building-your-application/routing/pages-and-layouts#root-layout-required) inside `app/layout.tsx` with the required <html> and <body> tags:
37+
[It's required create a `root layout`](https://nextjs.org/docs/app/getting-started/layouts-and-pages#creating-a-layout) inside `app/layout.tsx` with the required <html> and <body> tags:
3838

3939
_./app/layout.tsx_
4040

04-frameworks/08-nextjs/01-config/api-server/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22
"name": "car-api",
33
"version": "1.0.0",
44
"description": "Car API",
5-
"main": "index.js",
5+
"type": "module",
66
"scripts": {
77
"mock-server": "tsx watch src/index.ts"
88
},
99
"author": "Lemoncode",
1010
"license": "MIT",
1111
"dependencies": {
12-
"@hono/node-server": "^1.13.8",
13-
"hono": "^4.6.20"
12+
"@hono/node-server": "^1.19.7",
13+
"hono": "^4.11.0"
1414
},
1515
"devDependencies": {
16-
"tsx": "^4.19.2"
16+
"tsx": "^4.21.0"
1717
}
1818
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3+
import "./.next/types/routes.d.ts";
34

45
// NOTE: This file should not be edited
56
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
2-
"name": "07-nextjs-examples",
2+
"name": "nextjs-examples",
33
"version": "1.0.0",
44
"description": "Nextjs examples",
5+
"type": "module",
56
"scripts": {
67
"start": "next dev",
78
"build": "next build",
@@ -12,14 +13,14 @@
1213
"author": "Lemoncode",
1314
"license": "MIT",
1415
"dependencies": {
15-
"next": "^15.1.6",
16-
"react": "^19.0.0",
17-
"react-dom": "^19.0.0"
16+
"next": "^16.0.10",
17+
"react": "^19.2.3",
18+
"react-dom": "^19.2.3"
1819
},
1920
"devDependencies": {
20-
"@types/node": "22.13.0",
21-
"@types/react": "^19.0.8",
22-
"@types/react-dom": "^19.0.3",
23-
"typescript": "^5.7.3"
21+
"@types/node": "25.0.1",
22+
"@types/react": "^19.2.7",
23+
"@types/react-dom": "^19.2.3",
24+
"typescript": "^5.9.3"
2425
}
2526
}

04-frameworks/08-nextjs/01-config/tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"moduleResolution": "node",
1717
"resolveJsonModule": true,
1818
"isolatedModules": true,
19-
"jsx": "preserve",
19+
"jsx": "react-jsx",
2020
"plugins": [
2121
{
2222
"name": "next"
@@ -26,6 +26,8 @@
2626
"include": [
2727
"next-env.d.ts",
2828
".next/types/**/*.ts",
29+
".next/dev/types/**/*.ts",
30+
"**/*.mts",
2931
"**/*.ts",
3032
"**/*.tsx"
3133
],

0 commit comments

Comments
 (0)