Skip to content

Commit f16e48b

Browse files
committed
update 01-config
1 parent c048918 commit f16e48b

File tree

5 files changed

+12
-13
lines changed

5 files changed

+12
-13
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,11 @@ _./package.json_
2828
"scripts": {
2929
+ "start": "next dev",
3030
"start:api-server": "cd api-server && npm run mock-server",
31-
"postinstall": "cd ./api-server && npm install",
32-
"clean": "rimraf .next"
31+
"postinstall": "cd ./api-server && npm install"
3332
},
3433
```
3534

36-
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 must place all our files inside the `app` folder and every component will be a `React Server Component` by default.
35+
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.
3736

3837
[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:
3938

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
"author": "Lemoncode",
1010
"license": "MIT",
1111
"devDependencies": {
12-
"json-server": "^0.17.3"
12+
"json-server": "^1.0.0-beta.2"
1313
}
1414
}

04-frameworks/08-nextjs/01-config/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/basic-features/typescript for more information.
5+
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.

04-frameworks/08-nextjs/01-config/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.1.0",
16-
"react": "^18.2.0",
17-
"react-dom": "^18.2.0"
15+
"next": "^14.2.9",
16+
"react": "^18.3.1",
17+
"react-dom": "^18.3.1"
1818
},
1919
"devDependencies": {
20-
"@types/node": "20.11.16",
21-
"@types/react": "^18.2.55",
22-
"@types/react-dom": "^18.2.19",
23-
"typescript": "^5.3.3"
20+
"@types/node": "22.5.4",
21+
"@types/react": "^18.3.5",
22+
"@types/react-dom": "^18.3.0",
23+
"typescript": "^5.6.2"
2424
}
2525
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"strict": false,
1111
"noEmit": true,
1212
"incremental": true,
13-
"esModuleInterop": true,
1413
"module": "esnext",
14+
"esModuleInterop": true,
1515
"moduleResolution": "node",
1616
"resolveJsonModule": true,
1717
"isolatedModules": true,

0 commit comments

Comments
 (0)