mirror of
https://github.com/vercel/next-learn.git
synced 2026-06-11 09:51:47 +00:00
Update deps on SEO and Pages Router courses (#987)
This commit is contained in:
@@ -2,15 +2,15 @@
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "next build",
|
||||
"dev": "next dev",
|
||||
"dev": "next dev --turbopack",
|
||||
"start": "next start"
|
||||
},
|
||||
"dependencies": {
|
||||
"date-fns": "^2.29.3",
|
||||
"gray-matter": "^4.0.3",
|
||||
"next": "latest",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0",
|
||||
"react": "latest",
|
||||
"react-dom": "latest",
|
||||
"remark": "^14.0.2",
|
||||
"remark-html": "^15.0.1"
|
||||
},
|
||||
|
||||
@@ -2,13 +2,13 @@
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "next build",
|
||||
"dev": "next dev",
|
||||
"dev": "next dev --turbopack",
|
||||
"start": "next start"
|
||||
},
|
||||
"dependencies": {
|
||||
"next": "latest",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0"
|
||||
"react": "latest",
|
||||
"react-dom": "latest"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
|
||||
@@ -9,8 +9,8 @@
|
||||
"date-fns": "^2.29.3",
|
||||
"gray-matter": "^4.0.3",
|
||||
"next": "latest",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0",
|
||||
"react": "latest",
|
||||
"react-dom": "latest",
|
||||
"remark": "^14.0.2",
|
||||
"remark-html": "^15.0.1"
|
||||
},
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"next": "latest",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0"
|
||||
"react": "latest",
|
||||
"react-dom": "latest"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
|
||||
@@ -9,8 +9,8 @@
|
||||
"date-fns": "^2.29.3",
|
||||
"gray-matter": "^4.0.3",
|
||||
"next": "latest",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0",
|
||||
"react": "latest",
|
||||
"react-dom": "latest",
|
||||
"remark": "^14.0.2",
|
||||
"remark-html": "^15.0.1"
|
||||
},
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
"dependencies": {
|
||||
"gray-matter": "^4.0.3",
|
||||
"next": "latest",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0"
|
||||
"react": "latest",
|
||||
"react-dom": "latest"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
"dependencies": {
|
||||
"gray-matter": "^4.0.3",
|
||||
"next": "latest",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0"
|
||||
"react": "latest",
|
||||
"react-dom": "latest"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"next": "latest",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0"
|
||||
"react": "latest",
|
||||
"react-dom": "latest"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"next": "latest",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0"
|
||||
"react": "latest",
|
||||
"react-dom": "latest"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
|
||||
@@ -9,8 +9,8 @@
|
||||
"date-fns": "^2.29.3",
|
||||
"gray-matter": "^4.0.3",
|
||||
"next": "^13.0.2",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0",
|
||||
"react": "latest",
|
||||
"react-dom": "latest",
|
||||
"remark": "^14.0.2",
|
||||
"remark-html": "^15.0.1"
|
||||
},
|
||||
|
||||
@@ -12,11 +12,11 @@
|
||||
"autoprefixer": "10.4.20",
|
||||
"bcrypt": "^5.1.1",
|
||||
"clsx": "^2.1.1",
|
||||
"next": "^15.1.5",
|
||||
"next": "latest",
|
||||
"next-auth": "5.0.0-beta.25",
|
||||
"postcss": "8.5.1",
|
||||
"react": "19.0.0",
|
||||
"react-dom": "19.0.0",
|
||||
"react": "latest",
|
||||
"react-dom": "latest",
|
||||
"tailwindcss": "3.4.17",
|
||||
"typescript": "5.7.3",
|
||||
"use-debounce": "^10.0.4",
|
||||
|
||||
92
dashboard/final-example/pnpm-lock.yaml
generated
92
dashboard/final-example/pnpm-lock.yaml
generated
@@ -27,19 +27,19 @@ importers:
|
||||
specifier: ^2.1.1
|
||||
version: 2.1.1
|
||||
next:
|
||||
specifier: ^15.1.5
|
||||
version: 15.1.5(react-dom@19.0.0(react@19.0.0))(react@19.0.0)
|
||||
specifier: latest
|
||||
version: 15.1.6(react-dom@19.0.0(react@19.0.0))(react@19.0.0)
|
||||
next-auth:
|
||||
specifier: 5.0.0-beta.25
|
||||
version: 5.0.0-beta.25(next@15.1.5(react-dom@19.0.0(react@19.0.0))(react@19.0.0))(react@19.0.0)
|
||||
version: 5.0.0-beta.25(next@15.1.6(react-dom@19.0.0(react@19.0.0))(react@19.0.0))(react@19.0.0)
|
||||
postcss:
|
||||
specifier: 8.5.1
|
||||
version: 8.5.1
|
||||
react:
|
||||
specifier: 19.0.0
|
||||
specifier: latest
|
||||
version: 19.0.0
|
||||
react-dom:
|
||||
specifier: 19.0.0
|
||||
specifier: latest
|
||||
version: 19.0.0(react@19.0.0)
|
||||
tailwindcss:
|
||||
specifier: 3.4.17
|
||||
@@ -229,53 +229,53 @@ packages:
|
||||
'@neondatabase/serverless@0.9.5':
|
||||
resolution: {integrity: sha512-siFas6gItqv6wD/pZnvdu34wEqgG3nSE6zWZdq5j2DEsa+VvX8i/5HXJOo06qrw5axPXn+lGCxeR+NLaSPIXug==}
|
||||
|
||||
'@next/env@15.1.5':
|
||||
resolution: {integrity: sha512-jg8ygVq99W3/XXb9Y6UQsritwhjc+qeiO7QrGZRYOfviyr/HcdnhdBQu4gbp2rBIh2ZyBYTBMWbPw3JSCb0GHw==}
|
||||
'@next/env@15.1.6':
|
||||
resolution: {integrity: sha512-d9AFQVPEYNr+aqokIiPLNK/MTyt3DWa/dpKveiAaVccUadFbhFEvY6FXYX2LJO2Hv7PHnLBu2oWwB4uBuHjr/w==}
|
||||
|
||||
'@next/swc-darwin-arm64@15.1.5':
|
||||
resolution: {integrity: sha512-5ttHGE75Nw9/l5S8zR2xEwR8OHEqcpPym3idIMAZ2yo+Edk0W/Vf46jGqPOZDk+m/SJ+vYZDSuztzhVha8rcdA==}
|
||||
'@next/swc-darwin-arm64@15.1.6':
|
||||
resolution: {integrity: sha512-u7lg4Mpl9qWpKgy6NzEkz/w0/keEHtOybmIl0ykgItBxEM5mYotS5PmqTpo+Rhg8FiOiWgwr8USxmKQkqLBCrw==}
|
||||
engines: {node: '>= 10'}
|
||||
cpu: [arm64]
|
||||
os: [darwin]
|
||||
|
||||
'@next/swc-darwin-x64@15.1.5':
|
||||
resolution: {integrity: sha512-8YnZn7vDURUUTInfOcU5l0UWplZGBqUlzvqKKUFceM11SzfNEz7E28E1Arn4/FsOf90b1Nopboy7i7ufc4jXag==}
|
||||
'@next/swc-darwin-x64@15.1.6':
|
||||
resolution: {integrity: sha512-x1jGpbHbZoZ69nRuogGL2MYPLqohlhnT9OCU6E6QFewwup+z+M6r8oU47BTeJcWsF2sdBahp5cKiAcDbwwK/lg==}
|
||||
engines: {node: '>= 10'}
|
||||
cpu: [x64]
|
||||
os: [darwin]
|
||||
|
||||
'@next/swc-linux-arm64-gnu@15.1.5':
|
||||
resolution: {integrity: sha512-rDJC4ctlYbK27tCyFUhgIv8o7miHNlpCjb2XXfTLQszwAUOSbcMN9q2y3urSrrRCyGVOd9ZR9a4S45dRh6JF3A==}
|
||||
'@next/swc-linux-arm64-gnu@15.1.6':
|
||||
resolution: {integrity: sha512-jar9sFw0XewXsBzPf9runGzoivajeWJUc/JkfbLTC4it9EhU8v7tCRLH7l5Y1ReTMN6zKJO0kKAGqDk8YSO2bg==}
|
||||
engines: {node: '>= 10'}
|
||||
cpu: [arm64]
|
||||
os: [linux]
|
||||
|
||||
'@next/swc-linux-arm64-musl@15.1.5':
|
||||
resolution: {integrity: sha512-FG5RApf4Gu+J+pHUQxXPM81oORZrKBYKUaBTylEIQ6Lz17hKVDsLbSXInfXM0giclvXbyiLXjTv42sQMATmZ0A==}
|
||||
'@next/swc-linux-arm64-musl@15.1.6':
|
||||
resolution: {integrity: sha512-+n3u//bfsrIaZch4cgOJ3tXCTbSxz0s6brJtU3SzLOvkJlPQMJ+eHVRi6qM2kKKKLuMY+tcau8XD9CJ1OjeSQQ==}
|
||||
engines: {node: '>= 10'}
|
||||
cpu: [arm64]
|
||||
os: [linux]
|
||||
|
||||
'@next/swc-linux-x64-gnu@15.1.5':
|
||||
resolution: {integrity: sha512-NX2Ar3BCquAOYpnoYNcKz14eH03XuF7SmSlPzTSSU4PJe7+gelAjxo3Y7F2m8+hLT8ZkkqElawBp7SWBdzwqQw==}
|
||||
'@next/swc-linux-x64-gnu@15.1.6':
|
||||
resolution: {integrity: sha512-SpuDEXixM3PycniL4iVCLyUyvcl6Lt0mtv3am08sucskpG0tYkW1KlRhTgj4LI5ehyxriVVcfdoxuuP8csi3kQ==}
|
||||
engines: {node: '>= 10'}
|
||||
cpu: [x64]
|
||||
os: [linux]
|
||||
|
||||
'@next/swc-linux-x64-musl@15.1.5':
|
||||
resolution: {integrity: sha512-EQgqMiNu3mrV5eQHOIgeuh6GB5UU57tu17iFnLfBEhYfiOfyK+vleYKh2dkRVkV6ayx3eSqbIYgE7J7na4hhcA==}
|
||||
'@next/swc-linux-x64-musl@15.1.6':
|
||||
resolution: {integrity: sha512-L4druWmdFSZIIRhF+G60API5sFB7suTbDRhYWSjiw0RbE+15igQvE2g2+S973pMGvwN3guw7cJUjA/TmbPWTHQ==}
|
||||
engines: {node: '>= 10'}
|
||||
cpu: [x64]
|
||||
os: [linux]
|
||||
|
||||
'@next/swc-win32-arm64-msvc@15.1.5':
|
||||
resolution: {integrity: sha512-HPULzqR/VqryQZbZME8HJE3jNFmTGcp+uRMHabFbQl63TtDPm+oCXAz3q8XyGv2AoihwNApVlur9Up7rXWRcjg==}
|
||||
'@next/swc-win32-arm64-msvc@15.1.6':
|
||||
resolution: {integrity: sha512-s8w6EeqNmi6gdvM19tqKKWbCyOBvXFbndkGHl+c9YrzsLARRdCHsD9S1fMj8gsXm9v8vhC8s3N8rjuC/XrtkEg==}
|
||||
engines: {node: '>= 10'}
|
||||
cpu: [arm64]
|
||||
os: [win32]
|
||||
|
||||
'@next/swc-win32-x64-msvc@15.1.5':
|
||||
resolution: {integrity: sha512-n74fUb/Ka1dZSVYfjwQ+nSJ+ifUff7jGurFcTuJNKZmI62FFOxQXUYit/uZXPTj2cirm1rvGWHG2GhbSol5Ikw==}
|
||||
'@next/swc-win32-x64-msvc@15.1.6':
|
||||
resolution: {integrity: sha512-6xomMuu54FAFxttYr5PJbEfu96godcxBTRk1OhAvJq0/EnmFU/Ybiax30Snis4vdWZ9LGpf7Roy5fSs7v/5ROQ==}
|
||||
engines: {node: '>= 10'}
|
||||
cpu: [x64]
|
||||
os: [win32]
|
||||
@@ -713,8 +713,8 @@ packages:
|
||||
nodemailer:
|
||||
optional: true
|
||||
|
||||
next@15.1.5:
|
||||
resolution: {integrity: sha512-Cf/TEegnt01hn3Hoywh6N8fvkhbOuChO4wFje24+a86wKOubgVaWkDqxGVgoWlz2Hp9luMJ9zw3epftujdnUOg==}
|
||||
next@15.1.6:
|
||||
resolution: {integrity: sha512-Hch4wzbaX0vKQtalpXvUiw5sYivBy4cm5rzUKrBnUB/y436LGrvOUqYvlSeNVCWFO/770gDlltR9gqZH62ct4Q==}
|
||||
engines: {node: ^18.18.0 || ^19.8.0 || >= 20.0.0}
|
||||
hasBin: true
|
||||
peerDependencies:
|
||||
@@ -1286,30 +1286,30 @@ snapshots:
|
||||
dependencies:
|
||||
'@types/pg': 8.11.6
|
||||
|
||||
'@next/env@15.1.5': {}
|
||||
'@next/env@15.1.6': {}
|
||||
|
||||
'@next/swc-darwin-arm64@15.1.5':
|
||||
'@next/swc-darwin-arm64@15.1.6':
|
||||
optional: true
|
||||
|
||||
'@next/swc-darwin-x64@15.1.5':
|
||||
'@next/swc-darwin-x64@15.1.6':
|
||||
optional: true
|
||||
|
||||
'@next/swc-linux-arm64-gnu@15.1.5':
|
||||
'@next/swc-linux-arm64-gnu@15.1.6':
|
||||
optional: true
|
||||
|
||||
'@next/swc-linux-arm64-musl@15.1.5':
|
||||
'@next/swc-linux-arm64-musl@15.1.6':
|
||||
optional: true
|
||||
|
||||
'@next/swc-linux-x64-gnu@15.1.5':
|
||||
'@next/swc-linux-x64-gnu@15.1.6':
|
||||
optional: true
|
||||
|
||||
'@next/swc-linux-x64-musl@15.1.5':
|
||||
'@next/swc-linux-x64-musl@15.1.6':
|
||||
optional: true
|
||||
|
||||
'@next/swc-win32-arm64-msvc@15.1.5':
|
||||
'@next/swc-win32-arm64-msvc@15.1.6':
|
||||
optional: true
|
||||
|
||||
'@next/swc-win32-x64-msvc@15.1.5':
|
||||
'@next/swc-win32-x64-msvc@15.1.6':
|
||||
optional: true
|
||||
|
||||
'@nodelib/fs.scandir@2.1.5':
|
||||
@@ -1715,15 +1715,15 @@ snapshots:
|
||||
|
||||
nanoid@3.3.8: {}
|
||||
|
||||
next-auth@5.0.0-beta.25(next@15.1.5(react-dom@19.0.0(react@19.0.0))(react@19.0.0))(react@19.0.0):
|
||||
next-auth@5.0.0-beta.25(next@15.1.6(react-dom@19.0.0(react@19.0.0))(react@19.0.0))(react@19.0.0):
|
||||
dependencies:
|
||||
'@auth/core': 0.37.2
|
||||
next: 15.1.5(react-dom@19.0.0(react@19.0.0))(react@19.0.0)
|
||||
next: 15.1.6(react-dom@19.0.0(react@19.0.0))(react@19.0.0)
|
||||
react: 19.0.0
|
||||
|
||||
next@15.1.5(react-dom@19.0.0(react@19.0.0))(react@19.0.0):
|
||||
next@15.1.6(react-dom@19.0.0(react@19.0.0))(react@19.0.0):
|
||||
dependencies:
|
||||
'@next/env': 15.1.5
|
||||
'@next/env': 15.1.6
|
||||
'@swc/counter': 0.1.3
|
||||
'@swc/helpers': 0.5.15
|
||||
busboy: 1.6.0
|
||||
@@ -1733,14 +1733,14 @@ snapshots:
|
||||
react-dom: 19.0.0(react@19.0.0)
|
||||
styled-jsx: 5.1.6(react@19.0.0)
|
||||
optionalDependencies:
|
||||
'@next/swc-darwin-arm64': 15.1.5
|
||||
'@next/swc-darwin-x64': 15.1.5
|
||||
'@next/swc-linux-arm64-gnu': 15.1.5
|
||||
'@next/swc-linux-arm64-musl': 15.1.5
|
||||
'@next/swc-linux-x64-gnu': 15.1.5
|
||||
'@next/swc-linux-x64-musl': 15.1.5
|
||||
'@next/swc-win32-arm64-msvc': 15.1.5
|
||||
'@next/swc-win32-x64-msvc': 15.1.5
|
||||
'@next/swc-darwin-arm64': 15.1.6
|
||||
'@next/swc-darwin-x64': 15.1.6
|
||||
'@next/swc-linux-arm64-gnu': 15.1.6
|
||||
'@next/swc-linux-arm64-musl': 15.1.6
|
||||
'@next/swc-linux-x64-gnu': 15.1.6
|
||||
'@next/swc-linux-x64-musl': 15.1.6
|
||||
'@next/swc-win32-arm64-msvc': 15.1.6
|
||||
'@next/swc-win32-x64-msvc': 15.1.6
|
||||
sharp: 0.33.5
|
||||
transitivePeerDependencies:
|
||||
- '@babel/core'
|
||||
|
||||
@@ -12,11 +12,11 @@
|
||||
"autoprefixer": "10.4.20",
|
||||
"bcrypt": "^5.1.1",
|
||||
"clsx": "^2.1.1",
|
||||
"next": "^15.1.5",
|
||||
"next": "latest",
|
||||
"next-auth": "5.0.0-beta.25",
|
||||
"postcss": "8.5.1",
|
||||
"react": "19.0.0",
|
||||
"react-dom": "19.0.0",
|
||||
"react": "latest",
|
||||
"react-dom": "latest",
|
||||
"tailwindcss": "3.4.17",
|
||||
"typescript": "5.7.3",
|
||||
"use-debounce": "^10.0.4",
|
||||
|
||||
92
dashboard/starter-example/pnpm-lock.yaml
generated
92
dashboard/starter-example/pnpm-lock.yaml
generated
@@ -27,19 +27,19 @@ importers:
|
||||
specifier: ^2.1.1
|
||||
version: 2.1.1
|
||||
next:
|
||||
specifier: ^15.1.5
|
||||
version: 15.1.5(react-dom@19.0.0(react@19.0.0))(react@19.0.0)
|
||||
specifier: latest
|
||||
version: 15.1.6(react-dom@19.0.0(react@19.0.0))(react@19.0.0)
|
||||
next-auth:
|
||||
specifier: 5.0.0-beta.25
|
||||
version: 5.0.0-beta.25(next@15.1.5(react-dom@19.0.0(react@19.0.0))(react@19.0.0))(react@19.0.0)
|
||||
version: 5.0.0-beta.25(next@15.1.6(react-dom@19.0.0(react@19.0.0))(react@19.0.0))(react@19.0.0)
|
||||
postcss:
|
||||
specifier: 8.5.1
|
||||
version: 8.5.1
|
||||
react:
|
||||
specifier: 19.0.0
|
||||
specifier: latest
|
||||
version: 19.0.0
|
||||
react-dom:
|
||||
specifier: 19.0.0
|
||||
specifier: latest
|
||||
version: 19.0.0(react@19.0.0)
|
||||
tailwindcss:
|
||||
specifier: 3.4.17
|
||||
@@ -229,53 +229,53 @@ packages:
|
||||
'@neondatabase/serverless@0.9.5':
|
||||
resolution: {integrity: sha512-siFas6gItqv6wD/pZnvdu34wEqgG3nSE6zWZdq5j2DEsa+VvX8i/5HXJOo06qrw5axPXn+lGCxeR+NLaSPIXug==}
|
||||
|
||||
'@next/env@15.1.5':
|
||||
resolution: {integrity: sha512-jg8ygVq99W3/XXb9Y6UQsritwhjc+qeiO7QrGZRYOfviyr/HcdnhdBQu4gbp2rBIh2ZyBYTBMWbPw3JSCb0GHw==}
|
||||
'@next/env@15.1.6':
|
||||
resolution: {integrity: sha512-d9AFQVPEYNr+aqokIiPLNK/MTyt3DWa/dpKveiAaVccUadFbhFEvY6FXYX2LJO2Hv7PHnLBu2oWwB4uBuHjr/w==}
|
||||
|
||||
'@next/swc-darwin-arm64@15.1.5':
|
||||
resolution: {integrity: sha512-5ttHGE75Nw9/l5S8zR2xEwR8OHEqcpPym3idIMAZ2yo+Edk0W/Vf46jGqPOZDk+m/SJ+vYZDSuztzhVha8rcdA==}
|
||||
'@next/swc-darwin-arm64@15.1.6':
|
||||
resolution: {integrity: sha512-u7lg4Mpl9qWpKgy6NzEkz/w0/keEHtOybmIl0ykgItBxEM5mYotS5PmqTpo+Rhg8FiOiWgwr8USxmKQkqLBCrw==}
|
||||
engines: {node: '>= 10'}
|
||||
cpu: [arm64]
|
||||
os: [darwin]
|
||||
|
||||
'@next/swc-darwin-x64@15.1.5':
|
||||
resolution: {integrity: sha512-8YnZn7vDURUUTInfOcU5l0UWplZGBqUlzvqKKUFceM11SzfNEz7E28E1Arn4/FsOf90b1Nopboy7i7ufc4jXag==}
|
||||
'@next/swc-darwin-x64@15.1.6':
|
||||
resolution: {integrity: sha512-x1jGpbHbZoZ69nRuogGL2MYPLqohlhnT9OCU6E6QFewwup+z+M6r8oU47BTeJcWsF2sdBahp5cKiAcDbwwK/lg==}
|
||||
engines: {node: '>= 10'}
|
||||
cpu: [x64]
|
||||
os: [darwin]
|
||||
|
||||
'@next/swc-linux-arm64-gnu@15.1.5':
|
||||
resolution: {integrity: sha512-rDJC4ctlYbK27tCyFUhgIv8o7miHNlpCjb2XXfTLQszwAUOSbcMN9q2y3urSrrRCyGVOd9ZR9a4S45dRh6JF3A==}
|
||||
'@next/swc-linux-arm64-gnu@15.1.6':
|
||||
resolution: {integrity: sha512-jar9sFw0XewXsBzPf9runGzoivajeWJUc/JkfbLTC4it9EhU8v7tCRLH7l5Y1ReTMN6zKJO0kKAGqDk8YSO2bg==}
|
||||
engines: {node: '>= 10'}
|
||||
cpu: [arm64]
|
||||
os: [linux]
|
||||
|
||||
'@next/swc-linux-arm64-musl@15.1.5':
|
||||
resolution: {integrity: sha512-FG5RApf4Gu+J+pHUQxXPM81oORZrKBYKUaBTylEIQ6Lz17hKVDsLbSXInfXM0giclvXbyiLXjTv42sQMATmZ0A==}
|
||||
'@next/swc-linux-arm64-musl@15.1.6':
|
||||
resolution: {integrity: sha512-+n3u//bfsrIaZch4cgOJ3tXCTbSxz0s6brJtU3SzLOvkJlPQMJ+eHVRi6qM2kKKKLuMY+tcau8XD9CJ1OjeSQQ==}
|
||||
engines: {node: '>= 10'}
|
||||
cpu: [arm64]
|
||||
os: [linux]
|
||||
|
||||
'@next/swc-linux-x64-gnu@15.1.5':
|
||||
resolution: {integrity: sha512-NX2Ar3BCquAOYpnoYNcKz14eH03XuF7SmSlPzTSSU4PJe7+gelAjxo3Y7F2m8+hLT8ZkkqElawBp7SWBdzwqQw==}
|
||||
'@next/swc-linux-x64-gnu@15.1.6':
|
||||
resolution: {integrity: sha512-SpuDEXixM3PycniL4iVCLyUyvcl6Lt0mtv3am08sucskpG0tYkW1KlRhTgj4LI5ehyxriVVcfdoxuuP8csi3kQ==}
|
||||
engines: {node: '>= 10'}
|
||||
cpu: [x64]
|
||||
os: [linux]
|
||||
|
||||
'@next/swc-linux-x64-musl@15.1.5':
|
||||
resolution: {integrity: sha512-EQgqMiNu3mrV5eQHOIgeuh6GB5UU57tu17iFnLfBEhYfiOfyK+vleYKh2dkRVkV6ayx3eSqbIYgE7J7na4hhcA==}
|
||||
'@next/swc-linux-x64-musl@15.1.6':
|
||||
resolution: {integrity: sha512-L4druWmdFSZIIRhF+G60API5sFB7suTbDRhYWSjiw0RbE+15igQvE2g2+S973pMGvwN3guw7cJUjA/TmbPWTHQ==}
|
||||
engines: {node: '>= 10'}
|
||||
cpu: [x64]
|
||||
os: [linux]
|
||||
|
||||
'@next/swc-win32-arm64-msvc@15.1.5':
|
||||
resolution: {integrity: sha512-HPULzqR/VqryQZbZME8HJE3jNFmTGcp+uRMHabFbQl63TtDPm+oCXAz3q8XyGv2AoihwNApVlur9Up7rXWRcjg==}
|
||||
'@next/swc-win32-arm64-msvc@15.1.6':
|
||||
resolution: {integrity: sha512-s8w6EeqNmi6gdvM19tqKKWbCyOBvXFbndkGHl+c9YrzsLARRdCHsD9S1fMj8gsXm9v8vhC8s3N8rjuC/XrtkEg==}
|
||||
engines: {node: '>= 10'}
|
||||
cpu: [arm64]
|
||||
os: [win32]
|
||||
|
||||
'@next/swc-win32-x64-msvc@15.1.5':
|
||||
resolution: {integrity: sha512-n74fUb/Ka1dZSVYfjwQ+nSJ+ifUff7jGurFcTuJNKZmI62FFOxQXUYit/uZXPTj2cirm1rvGWHG2GhbSol5Ikw==}
|
||||
'@next/swc-win32-x64-msvc@15.1.6':
|
||||
resolution: {integrity: sha512-6xomMuu54FAFxttYr5PJbEfu96godcxBTRk1OhAvJq0/EnmFU/Ybiax30Snis4vdWZ9LGpf7Roy5fSs7v/5ROQ==}
|
||||
engines: {node: '>= 10'}
|
||||
cpu: [x64]
|
||||
os: [win32]
|
||||
@@ -713,8 +713,8 @@ packages:
|
||||
nodemailer:
|
||||
optional: true
|
||||
|
||||
next@15.1.5:
|
||||
resolution: {integrity: sha512-Cf/TEegnt01hn3Hoywh6N8fvkhbOuChO4wFje24+a86wKOubgVaWkDqxGVgoWlz2Hp9luMJ9zw3epftujdnUOg==}
|
||||
next@15.1.6:
|
||||
resolution: {integrity: sha512-Hch4wzbaX0vKQtalpXvUiw5sYivBy4cm5rzUKrBnUB/y436LGrvOUqYvlSeNVCWFO/770gDlltR9gqZH62ct4Q==}
|
||||
engines: {node: ^18.18.0 || ^19.8.0 || >= 20.0.0}
|
||||
hasBin: true
|
||||
peerDependencies:
|
||||
@@ -1286,30 +1286,30 @@ snapshots:
|
||||
dependencies:
|
||||
'@types/pg': 8.11.6
|
||||
|
||||
'@next/env@15.1.5': {}
|
||||
'@next/env@15.1.6': {}
|
||||
|
||||
'@next/swc-darwin-arm64@15.1.5':
|
||||
'@next/swc-darwin-arm64@15.1.6':
|
||||
optional: true
|
||||
|
||||
'@next/swc-darwin-x64@15.1.5':
|
||||
'@next/swc-darwin-x64@15.1.6':
|
||||
optional: true
|
||||
|
||||
'@next/swc-linux-arm64-gnu@15.1.5':
|
||||
'@next/swc-linux-arm64-gnu@15.1.6':
|
||||
optional: true
|
||||
|
||||
'@next/swc-linux-arm64-musl@15.1.5':
|
||||
'@next/swc-linux-arm64-musl@15.1.6':
|
||||
optional: true
|
||||
|
||||
'@next/swc-linux-x64-gnu@15.1.5':
|
||||
'@next/swc-linux-x64-gnu@15.1.6':
|
||||
optional: true
|
||||
|
||||
'@next/swc-linux-x64-musl@15.1.5':
|
||||
'@next/swc-linux-x64-musl@15.1.6':
|
||||
optional: true
|
||||
|
||||
'@next/swc-win32-arm64-msvc@15.1.5':
|
||||
'@next/swc-win32-arm64-msvc@15.1.6':
|
||||
optional: true
|
||||
|
||||
'@next/swc-win32-x64-msvc@15.1.5':
|
||||
'@next/swc-win32-x64-msvc@15.1.6':
|
||||
optional: true
|
||||
|
||||
'@nodelib/fs.scandir@2.1.5':
|
||||
@@ -1715,15 +1715,15 @@ snapshots:
|
||||
|
||||
nanoid@3.3.8: {}
|
||||
|
||||
next-auth@5.0.0-beta.25(next@15.1.5(react-dom@19.0.0(react@19.0.0))(react@19.0.0))(react@19.0.0):
|
||||
next-auth@5.0.0-beta.25(next@15.1.6(react-dom@19.0.0(react@19.0.0))(react@19.0.0))(react@19.0.0):
|
||||
dependencies:
|
||||
'@auth/core': 0.37.2
|
||||
next: 15.1.5(react-dom@19.0.0(react@19.0.0))(react@19.0.0)
|
||||
next: 15.1.6(react-dom@19.0.0(react@19.0.0))(react@19.0.0)
|
||||
react: 19.0.0
|
||||
|
||||
next@15.1.5(react-dom@19.0.0(react@19.0.0))(react@19.0.0):
|
||||
next@15.1.6(react-dom@19.0.0(react@19.0.0))(react@19.0.0):
|
||||
dependencies:
|
||||
'@next/env': 15.1.5
|
||||
'@next/env': 15.1.6
|
||||
'@swc/counter': 0.1.3
|
||||
'@swc/helpers': 0.5.15
|
||||
busboy: 1.6.0
|
||||
@@ -1733,14 +1733,14 @@ snapshots:
|
||||
react-dom: 19.0.0(react@19.0.0)
|
||||
styled-jsx: 5.1.6(react@19.0.0)
|
||||
optionalDependencies:
|
||||
'@next/swc-darwin-arm64': 15.1.5
|
||||
'@next/swc-darwin-x64': 15.1.5
|
||||
'@next/swc-linux-arm64-gnu': 15.1.5
|
||||
'@next/swc-linux-arm64-musl': 15.1.5
|
||||
'@next/swc-linux-x64-gnu': 15.1.5
|
||||
'@next/swc-linux-x64-musl': 15.1.5
|
||||
'@next/swc-win32-arm64-msvc': 15.1.5
|
||||
'@next/swc-win32-x64-msvc': 15.1.5
|
||||
'@next/swc-darwin-arm64': 15.1.6
|
||||
'@next/swc-darwin-x64': 15.1.6
|
||||
'@next/swc-linux-arm64-gnu': 15.1.6
|
||||
'@next/swc-linux-arm64-musl': 15.1.6
|
||||
'@next/swc-linux-x64-gnu': 15.1.6
|
||||
'@next/swc-linux-x64-musl': 15.1.6
|
||||
'@next/swc-win32-arm64-msvc': 15.1.6
|
||||
'@next/swc-win32-x64-msvc': 15.1.6
|
||||
sharp: 0.33.5
|
||||
transitivePeerDependencies:
|
||||
- '@babel/core'
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
18
|
||||
32
seo/countries.js
Normal file
32
seo/countries.js
Normal file
@@ -0,0 +1,32 @@
|
||||
export const countries = [
|
||||
{ name: "China", cca2: "CN", population: 1439323776 },
|
||||
{ name: "India", cca2: "IN", population: 1380004385 },
|
||||
{ name: "United States", cca2: "US", population: 331002651 },
|
||||
{ name: "Indonesia", cca2: "ID", population: 273523615 },
|
||||
{ name: "Pakistan", cca2: "PK", population: 220892340 },
|
||||
{ name: "Brazil", cca2: "BR", population: 212559417 },
|
||||
{ name: "Nigeria", cca2: "NG", population: 206139589 },
|
||||
{ name: "Bangladesh", cca2: "BD", population: 164689383 },
|
||||
{ name: "Russia", cca2: "RU", population: 145934462 },
|
||||
{ name: "Mexico", cca2: "MX", population: 128932753 },
|
||||
{ name: "Japan", cca2: "JP", population: 126476461 },
|
||||
{ name: "Philippines", cca2: "PH", population: 109581078 },
|
||||
{ name: "Egypt", cca2: "EG", population: 102334404 },
|
||||
{ name: "Ethiopia", cca2: "ET", population: 114963588 },
|
||||
{ name: "Vietnam", cca2: "VN", population: 97338579 },
|
||||
{ name: "Germany", cca2: "DE", population: 83783942 },
|
||||
{ name: "Turkey", cca2: "TR", population: 84339067 },
|
||||
{ name: "Iran", cca2: "IR", population: 83992949 },
|
||||
{ name: "Thailand", cca2: "TH", population: 69799978 },
|
||||
{ name: "United Kingdom", cca2: "GB", population: 67886011 },
|
||||
{ name: "France", cca2: "FR", population: 65273511 },
|
||||
{ name: "Italy", cca2: "IT", population: 60461826 },
|
||||
{ name: "South Africa", cca2: "ZA", population: 59308690 },
|
||||
{ name: "Tanzania", cca2: "TZ", population: 59734218 },
|
||||
{ name: "Myanmar", cca2: "MM", population: 54409800 },
|
||||
{ name: "South Korea", cca2: "KR", population: 51269185 },
|
||||
{ name: "Colombia", cca2: "CO", population: 50882891 },
|
||||
{ name: "Kenya", cca2: "KE", population: 53771296 },
|
||||
{ name: "Spain", cca2: "ES", population: 46754778 },
|
||||
{ name: "Argentina", cca2: "AR", population: 45195774 }
|
||||
];
|
||||
@@ -1 +0,0 @@
|
||||
18
|
||||
32
seo/demo/countries.js
Normal file
32
seo/demo/countries.js
Normal file
@@ -0,0 +1,32 @@
|
||||
export const countries = [
|
||||
{ name: "China", cca2: "CN", population: 1439323776 },
|
||||
{ name: "India", cca2: "IN", population: 1380004385 },
|
||||
{ name: "United States", cca2: "US", population: 331002651 },
|
||||
{ name: "Indonesia", cca2: "ID", population: 273523615 },
|
||||
{ name: "Pakistan", cca2: "PK", population: 220892340 },
|
||||
{ name: "Brazil", cca2: "BR", population: 212559417 },
|
||||
{ name: "Nigeria", cca2: "NG", population: 206139589 },
|
||||
{ name: "Bangladesh", cca2: "BD", population: 164689383 },
|
||||
{ name: "Russia", cca2: "RU", population: 145934462 },
|
||||
{ name: "Mexico", cca2: "MX", population: 128932753 },
|
||||
{ name: "Japan", cca2: "JP", population: 126476461 },
|
||||
{ name: "Philippines", cca2: "PH", population: 109581078 },
|
||||
{ name: "Egypt", cca2: "EG", population: 102334404 },
|
||||
{ name: "Ethiopia", cca2: "ET", population: 114963588 },
|
||||
{ name: "Vietnam", cca2: "VN", population: 97338579 },
|
||||
{ name: "Germany", cca2: "DE", population: 83783942 },
|
||||
{ name: "Turkey", cca2: "TR", population: 84339067 },
|
||||
{ name: "Iran", cca2: "IR", population: 83992949 },
|
||||
{ name: "Thailand", cca2: "TH", population: 69799978 },
|
||||
{ name: "United Kingdom", cca2: "GB", population: 67886011 },
|
||||
{ name: "France", cca2: "FR", population: 65273511 },
|
||||
{ name: "Italy", cca2: "IT", population: 60461826 },
|
||||
{ name: "South Africa", cca2: "ZA", population: 59308690 },
|
||||
{ name: "Tanzania", cca2: "TZ", population: 59734218 },
|
||||
{ name: "Myanmar", cca2: "MM", population: 54409800 },
|
||||
{ name: "South Korea", cca2: "KR", population: 51269185 },
|
||||
{ name: "Colombia", cca2: "CO", population: 50882891 },
|
||||
{ name: "Kenya", cca2: "KE", population: 53771296 },
|
||||
{ name: "Spain", cca2: "ES", population: 46754778 },
|
||||
{ name: "Argentina", cca2: "AR", population: 45195774 }
|
||||
];
|
||||
@@ -2,17 +2,17 @@
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "next build",
|
||||
"dev": "next dev",
|
||||
"dev": "next dev --turbopack",
|
||||
"start": "next start"
|
||||
},
|
||||
"dependencies": {
|
||||
"fuse.js": "^6.6.2",
|
||||
"lodash": "^4.17.21",
|
||||
"next": "latest",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0",
|
||||
"react-modal": "^3.16.1",
|
||||
"react-syntax-highlighter": "^15.5.0"
|
||||
"next": "^15.1.6",
|
||||
"react": "latest",
|
||||
"react-dom": "latest",
|
||||
"react-modal": "^3.16.3",
|
||||
"react-syntax-highlighter": "^15.6.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
|
||||
@@ -2,6 +2,7 @@ import { useState } from 'react';
|
||||
import Head from 'next/head';
|
||||
import dynamic from 'next/dynamic';
|
||||
|
||||
import { countries } from '../countries';
|
||||
import styles from '../styles/Home.module.css';
|
||||
import Image from 'next/image';
|
||||
|
||||
@@ -113,13 +114,10 @@ export default function Start({ countries }) {
|
||||
}
|
||||
|
||||
export async function getServerSideProps() {
|
||||
const response = await fetch('https://restcountries.com/v3.1/all');
|
||||
const countries = await response.json();
|
||||
|
||||
return {
|
||||
props: {
|
||||
countries: countries.map((country) => ({
|
||||
name: country.name.common,
|
||||
name: country.name,
|
||||
cca2: country.cca2,
|
||||
population: country.population,
|
||||
})),
|
||||
|
||||
@@ -2,17 +2,17 @@
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "next build",
|
||||
"dev": "next dev",
|
||||
"dev": "next dev --turbopack",
|
||||
"start": "next start"
|
||||
},
|
||||
"dependencies": {
|
||||
"fuse.js": "^6.6.2",
|
||||
"lodash": "^4.17.21",
|
||||
"next": "latest",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0",
|
||||
"react-modal": "^3.16.1",
|
||||
"react-syntax-highlighter": "^15.5.0"
|
||||
"next": "^15.1.6",
|
||||
"react": "latest",
|
||||
"react-dom": "latest",
|
||||
"react-modal": "^3.16.3",
|
||||
"react-syntax-highlighter": "^15.6.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
|
||||
@@ -4,6 +4,7 @@ import Head from 'next/head';
|
||||
import Fuse from 'fuse.js';
|
||||
import _ from 'lodash';
|
||||
|
||||
import { countries } from '../countries';
|
||||
import styles from '../styles/Home.module.css';
|
||||
import CodeSampleModal from '../components/CodeSampleModal';
|
||||
|
||||
@@ -100,13 +101,10 @@ export default function Start({ countries }) {
|
||||
}
|
||||
|
||||
export async function getServerSideProps() {
|
||||
const response = await fetch('https://restcountries.com/v3.1/all');
|
||||
const countries = await response.json();
|
||||
|
||||
return {
|
||||
props: {
|
||||
countries: countries.map((country) => ({
|
||||
name: country.name.common,
|
||||
name: country.name,
|
||||
cca2: country.cca2,
|
||||
population: country.population,
|
||||
})),
|
||||
|
||||
Reference in New Issue
Block a user