Skip to content

Commit 7dc7407

Browse files
author
Eric Lin
committed
fix: redirect all including trailing slash
1 parent e91edbc commit 7dc7407

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

vercel.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
{ "source": "/en/latest", "destination": "/", "permanent": true },
55
{ "source": "/en/latest/", "destination": "/", "permanent": true },
66
{
7-
"source": "/en/latest/:match*",
8-
"destination": "/:match*",
7+
"source": "/en/latest/:match(.*)",
8+
"destination": "/:match(.*)",
99
"permanent": true
1010
},
1111
{ "source": "/en/stable", "destination": "/", "permanent": true },
1212
{ "source": "/en/stable/", "destination": "/", "permanent": true },
1313
{
14-
"source": "/en/stable/:match*",
15-
"destination": "/:match*",
14+
"source": "/en/stable/:match(.*)",
15+
"destination": "/:match(.*)",
1616
"permanent": true
1717
}
1818
]

0 commit comments

Comments
 (0)