Skip to content

Commit 0d41076

Browse files
authored
feat(nextjs): upgrade to 15.5, and refresh config (#8096)
* feat(nextjs): upgrade to 15.5, and refresh config * fixup!
1 parent 7bdc4ff commit 0d41076

File tree

5 files changed

+76
-80
lines changed

5 files changed

+76
-80
lines changed

apps/site/eslint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const compatConfig = compat.config({
2020

2121
export default tseslint.config(
2222
...baseConfig,
23-
{ ignores: ['pages/en/blog/**/*.{md,mdx}/**', 'public'] },
23+
{ ignores: ['pages/en/blog/**/*.{md,mdx}/**', 'public', 'next-env.d.ts'] },
2424
{
2525
extends: [
2626
react.configs.flat['jsx-runtime'],

apps/site/next-env.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
33
/// <reference types="next/navigation-types/compat/navigation" />
4+
/// <reference path="./.next/types/routes.d.ts" />
45

56
// NOTE: This file should not be edited
67
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

apps/site/next.config.mjs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ import { redirects, rewrites } from './next.rewrites.mjs';
77
/** @type {import('next').NextConfig} */
88
const nextConfig = {
99
allowedDevOrigins: ['10.1.1.232'],
10-
// We don't use trailing slashes on URLs from the Node.js Website
11-
trailingSlash: false,
1210
// We don't want to redirect with trailing slashes
1311
skipTrailingSlashRedirect: true,
1412
// We allow the BASE_PATH to be overridden in case that the Website
@@ -54,7 +52,7 @@ const nextConfig = {
5452
],
5553
},
5654
// On static export builds we want the output directory to be "build"
57-
distDir: ENABLE_STATIC_EXPORT ? 'build' : '.next',
55+
distDir: ENABLE_STATIC_EXPORT ? 'build' : undefined,
5856
// On static export builds we want to enable the export feature
5957
output: ENABLE_STATIC_EXPORT ? 'export' : undefined,
6058
// This configures all the Next.js rewrites, which are used for rewriting internal URLs into other internal Endpoints
@@ -65,10 +63,13 @@ const nextConfig = {
6563
// We don't want to run Type Checking on Production Builds
6664
// as we already check it on the CI within each Pull Request
6765
typescript: { ignoreBuildErrors: true },
66+
// Enable statically typed links
67+
// @see https://nextjs.org/docs/app/api-reference/config/typescript#statically-typed-links
68+
typedRoutes: true,
6869
// We don't want to run ESLint Checking on Production Builds
6970
// as we already check it on the CI within each Pull Request
70-
// we also configure ESLint to run its lint checking on all files (next lint)
71-
eslint: { dirs: ['.'], ignoreDuringBuilds: true },
71+
// we also configure ESLint to run its lint checking on all files
72+
eslint: { ignoreDuringBuilds: true },
7273
experimental: {
7374
// Ensure that server-side code is also minified
7475
serverMinification: true,

apps/site/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"feed": "~5.1.0",
6161
"github-slugger": "~2.0.0",
6262
"gray-matter": "~4.0.3",
63-
"next": "15.4.4",
63+
"next": "15.5.0",
6464
"next-intl": "~4.3.4",
6565
"next-themes": "~0.4.6",
6666
"postcss-calc": "~10.1.1",
@@ -81,13 +81,13 @@
8181
"@eslint/compat": "~1.3.1",
8282
"@eslint/eslintrc": "~3.3.1",
8383
"@flarelabs-net/wrangler-build-time-fs-assets-polyfilling": "^0.0.1",
84-
"@next/eslint-plugin-next": "15.4.4",
84+
"@next/eslint-plugin-next": "15.5.0",
8585
"@opennextjs/cloudflare": "^1.6.4",
8686
"@playwright/test": "^1.54.1",
8787
"@testing-library/user-event": "~14.6.1",
8888
"@types/mdx": "^2.0.13",
8989
"@types/semver": "~7.7.0",
90-
"eslint-config-next": "15.4.4",
90+
"eslint-config-next": "15.5.0",
9191
"eslint-import-resolver-typescript": "~4.4.4",
9292
"eslint-plugin-mdx": "~3.6.2",
9393
"eslint-plugin-react": "~7.37.4",

0 commit comments

Comments
 (0)