Skip to content

Commit f454bf1

Browse files
docs(examples): Update Next.js version (#7649)
1 parent a80cea3 commit f454bf1

File tree

23 files changed

+189
-133
lines changed

23 files changed

+189
-133
lines changed
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1-
module.exports = {
1+
// @ts-check
2+
3+
/** @type {import('next').NextConfig} */
4+
const nextConfig = {
25
eslint: {
36
ignoreDuringBuilds: true,
47
},
58
}
9+
10+
export default nextConfig

examples/react/auto-refetching/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "@tanstack/query-example-react-auto-refetching",
33
"private": true,
4+
"type": "module",
45
"scripts": {
56
"dev": "next",
67
"build": "next build",
@@ -11,7 +12,7 @@
1112
"@tanstack/react-query-devtools": "^5.49.0",
1213
"axios": "^1.6.8",
1314
"isomorphic-unfetch": "4.0.2",
14-
"next": "^14.0.0",
15+
"next": "^14.2.4",
1516
"react": "^18.2.0",
1617
"react-dom": "^18.2.0"
1718
}
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1-
module.exports = {
1+
// @ts-check
2+
3+
/** @type {import('next').NextConfig} */
4+
const nextConfig = {
25
eslint: {
36
ignoreDuringBuilds: true,
47
},
58
}
9+
10+
export default nextConfig

examples/react/infinite-query-with-max-pages/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "@tanstack/query-example-react-infinite-query-with-max-pages",
33
"private": true,
4+
"type": "module",
45
"scripts": {
56
"dev": "next",
67
"build": "next build",
@@ -11,7 +12,7 @@
1112
"@tanstack/react-query-devtools": "^5.49.0",
1213
"axios": "^1.6.8",
1314
"isomorphic-unfetch": "4.0.2",
14-
"next": "^14.0.0",
15+
"next": "^14.2.4",
1516
"react": "^18.2.0",
1617
"react-dom": "^18.2.0",
1718
"react-intersection-observer": "^8.34.0"
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1-
module.exports = {
1+
// @ts-check
2+
3+
/** @type {import('next').NextConfig} */
4+
const nextConfig = {
25
eslint: {
36
ignoreDuringBuilds: true,
47
},
58
}
9+
10+
export default nextConfig

examples/react/load-more-infinite-scroll/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "@tanstack/query-example-react-load-more-infinite-scroll",
33
"private": true,
4+
"type": "module",
45
"scripts": {
56
"dev": "next",
67
"build": "next build",
@@ -11,7 +12,7 @@
1112
"@tanstack/react-query-devtools": "^5.49.0",
1213
"axios": "^1.6.8",
1314
"isomorphic-unfetch": "4.0.2",
14-
"next": "^14.0.0",
15+
"next": "^14.2.4",
1516
"react": "^18.2.0",
1617
"react-dom": "^18.2.0",
1718
"react-intersection-observer": "^8.34.0"
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1+
// @ts-check
2+
13
/** @type {import('next').NextConfig} */
24
const nextConfig = {
35
eslint: {
46
ignoreDuringBuilds: true,
57
},
68
}
79

8-
module.exports = nextConfig
10+
export default nextConfig

examples/react/nextjs-app-prefetching/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "nextjs-app-prefetching",
33
"private": true,
4+
"type": "module",
45
"scripts": {
56
"dev": "next dev",
67
"build": "next build",

examples/react/nextjs-suspense-streaming/next.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// @ts-check
2+
13
/** @type {import('next').NextConfig} */
24
const nextConfig = {
35
eslint: {
@@ -10,4 +12,4 @@ const nextConfig = {
1012
},
1113
}
1214

13-
module.exports = nextConfig
15+
export default nextConfig

examples/react/nextjs-suspense-streaming/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "@tanstack/query-example-nextjs-suspense-streaming",
33
"private": true,
4+
"type": "module",
45
"scripts": {
56
"dev": "next dev",
67
"build": "next build",
@@ -11,7 +12,7 @@
1112
"@tanstack/react-query": "^5.49.0",
1213
"@tanstack/react-query-devtools": "^5.49.0",
1314
"@tanstack/react-query-next-experimental": "^5.49.0",
14-
"next": "^14.0.0",
15+
"next": "^14.2.4",
1516
"react": "^18.2.0",
1617
"react-dom": "^18.2.0",
1718
"superjson": "^2.2.1"

0 commit comments

Comments
 (0)