@@ -7,8 +7,6 @@ import { redirects, rewrites } from './next.rewrites.mjs';
77/** @type {import('next').NextConfig } */
88const 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 ,
0 commit comments