File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -11,17 +11,23 @@ const nextConfig: NextConfig = {
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+ } ,
1424 async rewrites ( ) {
1525 return [
1626 // Serve index.html for framework-docs directory requests
1727 {
1828 source : '/framework-docs/:path*/' ,
1929 destination : '/framework-docs/:path*/index.html' ,
2030 } ,
21- {
22- source : '/framework-docs/:path((?!.*\\.).*)' ,
23- destination : '/framework-docs/:path/index.html' ,
24- } ,
2531 ] ;
2632 } ,
2733} ;
You can’t perform that action at this time.
0 commit comments