Skip to content

Commit

Permalink
Redirecting setup (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
hashedone authored Aug 28, 2024
1 parent 2505629 commit 80e0243
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,18 @@ const withNextra = nextra({

export default withNextra({
reactStrictMode: true,
async redirects() {
return [
{
source: "/docs",
destination: "/",
permanent: true,
},
{
source: "/docs/:p*",
destination: "/",
permanent: true,
},
];
},
});

0 comments on commit 80e0243

Please sign in to comment.