瀏覽代碼

Update vercel.json

Track3 3 年之前
父節點
當前提交
390aac324d
共有 1 個文件被更改,包括 7 次插入6 次删除
  1. 7 6
      vercel.json

+ 7 - 6
vercel.json

@@ -1,18 +1,19 @@
 {
+  "trailingSlash": true,
   "redirects": [
     {
-      "source": "/posts/:path",
-      "destination": "/writing/:path",
+      "source": "/posts/:path*",
+      "destination": "/writing/:path*",
       "permanent": true
     },
     {
-      "source": "/post/:path",
-      "destination": "/writing/:path",
+      "source": "/post/:path*",
+      "destination": "/writing/:path*",
       "permanent": true
     },
     {
-      "source": "/friends",
-      "destination": "/links",
+      "source": "/friends/",
+      "destination": "/links/",
       "permanent": true
     }
   ]