Skip to content

Commit b2ecb83

Browse files
committed
test: 测试修改路径
1 parent 093ec32 commit b2ecb83

File tree

2 files changed

+88
-92
lines changed

2 files changed

+88
-92
lines changed

next.config.js

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,20 @@ const withNextra = nextra({
77
});
88

99
export default withNextra({
10+
basePath: '/fastexcel',
1011
i18n: {
1112
locales: ["zh-CN", "zh-TW", "en-US", "ja-JP"],
1213
defaultLocale: "zh-CN",
1314
},
14-
// async redirects() {
15-
// return [
16-
// {
17-
// source: "/",
18-
// destination: "/fastexcel/zh-CN/",
19-
// permanent: true,
20-
// // basePath: false
21-
// },
22-
// {
23-
// source: "/fastexcel",
24-
// destination: "/fastexcel/zh-CN/",
25-
// permanent: true,
26-
// // basePath: false
27-
// }
28-
// ];
29-
// },
15+
async redirects() {
16+
return [
17+
{
18+
source: "/",
19+
destination: "/zh-CN/",
20+
permanent: true,
21+
// basePath: false
22+
},
23+
24+
];
25+
},
3026
});

0 commit comments

Comments
 (0)