File tree Expand file tree Collapse file tree 2 files changed +1
-22
lines changed
Expand file tree Collapse file tree 2 files changed +1
-22
lines changed Original file line number Diff line number Diff line change @@ -4,32 +4,13 @@ import path from "path";
44const nextConfig : NextConfig = {
55 output : 'standalone' ,
66 outputFileTracingRoot : path . join ( __dirname , './' ) ,
7- trailingSlash : true , // Ensure trailing slashes for correct relative path resolution
7+ skipTrailingSlashRedirect : true , // Don't auto-redirect trailing slashes - let middleware handle it
88 eslint : {
99 // Only run ESLint on these directories during production builds
1010 dirs : [ 'app' ] ,
1111 // Ignore ESLint errors during production builds
1212 ignoreDuringBuilds : true ,
1313 } ,
14- async redirects ( ) {
15- return [
16- // Redirect framework-docs paths without trailing slash to include trailing slash
17- {
18- source : '/framework-docs/:path((?!.*\\.).+)' ,
19- destination : '/framework-docs/:path/' ,
20- permanent : true ,
21- } ,
22- ] ;
23- } ,
24- async rewrites ( ) {
25- return [
26- // Serve index.html for framework-docs directory requests
27- {
28- source : '/framework-docs/:path*/' ,
29- destination : '/framework-docs/:path*/index.html' ,
30- } ,
31- ] ;
32- } ,
3314} ;
3415
3516export default nextConfig ;
Original file line number Diff line number Diff line change 11{
2- "trailingSlash" : true ,
3- "cleanUrls" : false ,
42 "headers" : [
53 {
64 "source" : " /framework-docs/(.*)" ,
You can’t perform that action at this time.
0 commit comments