Skip to content

Commit

Permalink
redirect to html pages
Browse files Browse the repository at this point in the history
  • Loading branch information
jewlexx committed Jan 7, 2025
1 parent e996d4c commit 4f2388d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,22 @@ const nextConfig: NextConfig = {
protocol: 'https'
}
]
},
async redirects() {
return [
{
source: '/projects/:project/docs',
destination: '/projects/:project/docs/:project/index.html',
// statusCode: 301,
permanent: true
},
{
source: '/projects/:project/docs/:project',
destination: '/projects/:project/docs/:project/index.html',
// statusCode: 301,
permanent: true
}
];
}
};

Expand Down

0 comments on commit 4f2388d

Please sign in to comment.