Skip to content

Commit a2997c8

Browse files
committed
test: 测试修改路径
1 parent 05d1e4c commit a2997c8

File tree

1 file changed

+16
-21
lines changed

1 file changed

+16
-21
lines changed

next.config.js

Lines changed: 16 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -13,25 +13,20 @@ export default withNextra({
1313
locales: ["zh-CN", "zh-TW", "en-US", "ja-JP"],
1414
defaultLocale: "zh-CN",
1515
},
16-
async redirects() {
17-
return [
18-
{
19-
source: "/en/:path*",
20-
destination: "/en-US/:path*",
21-
permanent: true,
22-
},
23-
{
24-
source: "/",
25-
destination: "/fastexcel/zh-CN/",
26-
permanent: true,
27-
// basePath: false
28-
},
29-
{
30-
source: "/fastexcel",
31-
destination: "/fastexcel/zh-CN/",
32-
permanent: true,
33-
// basePath: false
34-
}
35-
];
36-
},
16+
// async redirects() {
17+
// return [
18+
// {
19+
// source: "/",
20+
// destination: "/fastexcel/zh-CN/",
21+
// permanent: true,
22+
// // basePath: false
23+
// },
24+
// {
25+
// source: "/fastexcel",
26+
// destination: "/fastexcel/zh-CN/",
27+
// permanent: true,
28+
// // basePath: false
29+
// }
30+
// ];
31+
// },
3732
});

0 commit comments

Comments
 (0)