From 7dc74076b25967397c846d0d370089a6ad443f51 Mon Sep 17 00:00:00 2001 From: Eric Lin Date: Sat, 18 Feb 2023 11:23:03 +1000 Subject: [PATCH] fix: redirect all including trailing slash --- vercel.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vercel.json b/vercel.json index d6c41a1a6..f8bba6c3b 100644 --- a/vercel.json +++ b/vercel.json @@ -4,15 +4,15 @@ { "source": "/en/latest", "destination": "/", "permanent": true }, { "source": "/en/latest/", "destination": "/", "permanent": true }, { - "source": "/en/latest/:match*", - "destination": "/:match*", + "source": "/en/latest/:match(.*)", + "destination": "/:match(.*)", "permanent": true }, { "source": "/en/stable", "destination": "/", "permanent": true }, { "source": "/en/stable/", "destination": "/", "permanent": true }, { - "source": "/en/stable/:match*", - "destination": "/:match*", + "source": "/en/stable/:match(.*)", + "destination": "/:match(.*)", "permanent": true } ]