Skip to content

Commit d880f0c

Browse files
committed
Redirect home to base path
1 parent 1bacaec commit d880f0c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

next.config.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@ const config = {
77
reactStrictMode: true,
88
basePath: '/docs',
99
assetPrefix: '/docs-static',
10+
async redirects() {
11+
return [
12+
{
13+
source: '/',
14+
destination: '/docs',
15+
basePath: false,
16+
permanent: false,
17+
},
18+
];
19+
},
1020
};
1121

1222
export default withMDX(config);

0 commit comments

Comments
 (0)