@@ -7,8 +7,6 @@ import { redirects, rewrites } from './next.rewrites.mjs';
7
7
/** @type {import('next').NextConfig } */
8
8
const nextConfig = {
9
9
allowedDevOrigins : [ '10.1.1.232' ] ,
10
- // We don't use trailing slashes on URLs from the Node.js Website
11
- trailingSlash : false ,
12
10
// We don't want to redirect with trailing slashes
13
11
skipTrailingSlashRedirect : true ,
14
12
// We allow the BASE_PATH to be overridden in case that the Website
@@ -54,7 +52,7 @@ const nextConfig = {
54
52
] ,
55
53
} ,
56
54
// 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 ,
58
56
// On static export builds we want to enable the export feature
59
57
output : ENABLE_STATIC_EXPORT ? 'export' : undefined ,
60
58
// This configures all the Next.js rewrites, which are used for rewriting internal URLs into other internal Endpoints
@@ -65,10 +63,13 @@ const nextConfig = {
65
63
// We don't want to run Type Checking on Production Builds
66
64
// as we already check it on the CI within each Pull Request
67
65
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 ,
68
69
// We don't want to run ESLint Checking on Production Builds
69
70
// 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 } ,
72
73
experimental : {
73
74
// Ensure that server-side code is also minified
74
75
serverMinification : true ,
0 commit comments