Skip to content

Commit 2b91fd5

Browse files
authored
chore(deps): Bump Next.js test-version (#7021)
* Bump test version for Next.js * Remove eslint property from nextConfig * Add eslint next config property conditionally on Next.js version * Add turbopack.root next config property conditionally on Next.js version
1 parent 585370c commit 2b91fd5

File tree

5 files changed

+40
-9
lines changed

5 files changed

+40
-9
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": ["next", "next/core-web-vitals"],
3+
"ignorePatterns": ["**/*"]
4+
}
Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
1+
const nextPkg = require('next/package.json')
2+
const [majorStr] = nextPkg.version.split('.')
3+
const major = Number(majorStr)
4+
15
/** @type {import('next').NextConfig} */
26
const nextConfig = {
3-
eslint: {
4-
ignoreDuringBuilds: true
5-
},
67
experimental: {
78
appDir: true
89
},
910
output: 'standalone',
1011
outputFileTracingRoot: __dirname
1112
}
1213

14+
if (major < 16) {
15+
nextConfig.eslint = {
16+
ignoreDuringBuilds: true,
17+
}
18+
}
19+
1320
module.exports = nextConfig
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": ["next", "next/core-web-vitals"],
3+
"ignorePatterns": ["**/*"]
4+
}
Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,22 @@
1-
module.exports = {
2-
eslint: {
3-
ignoreDuringBuilds: true
4-
},
5-
output: 'standalone'
1+
const nextPkg = require('next/package.json')
2+
const [majorStr] = nextPkg.version.split('.')
3+
const major = Number(majorStr)
4+
5+
/** @type {import('next').NextConfig} */
6+
const nextConfig = {
7+
output: 'standalone',
68
}
9+
10+
if (major < 16) {
11+
nextConfig.eslint = {
12+
ignoreDuringBuilds: true,
13+
}
14+
}
15+
16+
if (major >= 16) {
17+
nextConfig.turbopack = {
18+
root: __dirname,
19+
}
20+
}
21+
22+
module.exports = nextConfig

packages/dd-trace/test/plugins/versions/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
"multer": "2.0.2",
149149
"mysql": "2.18.1",
150150
"mysql2": "3.15.3",
151-
"next": "16.0.1",
151+
"next": "16.0.5",
152152
"nock": "14.0.10",
153153
"node-serialize": "0.0.4",
154154
"npm": "11.6.2",

0 commit comments

Comments
 (0)