Skip to content

Commit 8759263

Browse files
authored
chore(deps): update dependency Next.js to v16 (#3003)
1 parent 7aa1470 commit 8759263

21 files changed

Lines changed: 800 additions & 520 deletions

File tree

.github/workflows/cypress.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
- 'cypress.config.ts'
1111
- 'package.json'
1212
- 'pnpm-lock.yaml'
13-
- 'next.config.js'
13+
- 'next.config.ts'
1414
- 'tsconfig.json'
1515
- '.github/workflows/cypress.yml'
1616
push:
@@ -20,7 +20,7 @@ on:
2020
- 'cypress.config.ts'
2121
- 'package.json'
2222
- 'pnpm-lock.yaml'
23-
- 'next.config.js'
23+
- 'next.config.ts'
2424
- 'tsconfig.json'
2525
- '.github/workflows/cypress.yml'
2626

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ pnpm-lock.yaml
77
cypress/config/settings.cypress.json
88
.github
99
.vscode
10+
next-env.d.ts
1011

1112
# assets
1213
src/assets/

.prettierrc.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ module.exports = {
99
rangeEnd: 0, // default: Infinity
1010
},
1111
},
12+
{
13+
files: 'next-env.d.ts',
14+
options: {
15+
rangeEnd: 0, // default: Infinity
16+
},
17+
},
1218
{
1319
files: 'gen-docs/pnpm-lock.yaml',
1420
options: {

next-env.d.ts

Lines changed: 2 additions & 1 deletion
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
5-
// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information.
6+
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
/**
2-
* @type {import('next').NextConfig}
3-
*/
4-
module.exports = {
1+
import type { NextConfig } from 'next';
2+
3+
const nextConfig: NextConfig = {
54
env: {
65
commitTag: process.env.COMMIT_TAG || 'local',
76
},
@@ -14,17 +13,18 @@ module.exports = {
1413
],
1514
},
1615
transpilePackages: ['country-flag-icons'],
17-
webpack(config) {
18-
config.module.rules.push({
19-
test: /\.svg$/,
20-
issuer: /\.(js|ts)x?$/,
21-
use: ['@svgr/webpack'],
22-
});
23-
24-
return config;
16+
turbopack: {
17+
rules: {
18+
'*.svg': {
19+
loaders: ['@svgr/webpack'],
20+
as: '*.js',
21+
},
22+
},
2523
},
2624
experimental: {
2725
scrollRestoration: true,
2826
largePageDataBytes: 512 * 1000,
2927
},
3028
};
29+
30+
export default nextConfig;

package.json

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,19 +70,19 @@
7070
"lodash": "4.18.1",
7171
"mime": "^4.1.0",
7272
"nanoid": "^5.1.7",
73-
"next": "^14.2.35",
73+
"next": "16.2.6",
7474
"node-cache": "5.1.2",
7575
"node-gyp": "12.2.0",
7676
"node-schedule": "2.1.1",
7777
"nodemailer": "8.0.5",
7878
"openpgp": "6.3.0",
7979
"pg": "8.20.0",
8080
"pug": "3.0.4",
81-
"react": "^18.3.1",
81+
"react": "19.2.6",
8282
"react-ace": "14.0.1",
8383
"react-animate-height": "3.2.3",
8484
"react-aria": "3.47.0",
85-
"react-dom": "^18.3.1",
85+
"react-dom": "19.2.6",
8686
"react-hot-toast": "^2.6.0",
8787
"react-intersection-observer": "10.0.3",
8888
"react-intl": "^7.1.14",
@@ -115,7 +115,7 @@
115115
"@commitlint/cli": "20.5.0",
116116
"@commitlint/config-conventional": "20.5.0",
117117
"@eslint/js": "9.39.3",
118-
"@next/eslint-plugin-next": "^16.2.3",
118+
"@next/eslint-plugin-next": "16.2.6",
119119
"@tailwindcss/aspect-ratio": "^0.4.2",
120120
"@tailwindcss/forms": "^0.5.11",
121121
"@tailwindcss/typography": "^0.5.19",
@@ -134,8 +134,8 @@
134134
"@types/node": "22.19.0",
135135
"@types/node-schedule": "2.1.8",
136136
"@types/nodemailer": "^8.0.0",
137-
"@types/react": "^18.3.28",
138-
"@types/react-dom": "^18.3.7",
137+
"@types/react": "19.2.14",
138+
"@types/react-dom": "19.2.3",
139139
"@types/react-transition-group": "4.4.12",
140140
"@types/semver": "7.7.1",
141141
"@types/supertest": "^7.2.0",
@@ -154,6 +154,7 @@
154154
"cypress": "15.13.1",
155155
"cz-conventional-changelog": "3.3.0",
156156
"eslint": "9.39.3",
157+
"eslint-config-next": "16.2.6",
157158
"eslint-config-prettier": "10.1.8",
158159
"eslint-plugin-formatjs": "6.4.5",
159160
"eslint-plugin-jsx-a11y": "6.10.2",
@@ -211,7 +212,9 @@
211212
],
212213
"overrides": {
213214
"sqlite3>node-gyp": "8.4.1",
214-
"@types/express-session": "1.18.2"
215+
"@types/express-session": "1.18.2",
216+
"@types/react": "19.2.14",
217+
"@types/react-dom": "19.2.3"
215218
}
216219
},
217220
"scarfSettings": {

0 commit comments

Comments
 (0)