From 5e85dbf4eff83d2102ec4fee2760be2325da4afc Mon Sep 17 00:00:00 2001 From: Vladimir Shestakov Date: Tue, 5 Dec 2023 11:43:21 +0300 Subject: [PATCH] test rewrites 4 --- vercel.json | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/vercel.json b/vercel.json index b60553d..3a4271c 100644 --- a/vercel.json +++ b/vercel.json @@ -1,8 +1,12 @@ { "rewrites": [ { - "source": "/api", - "destination": "http://example.front.ylab.io/api" + "source": "/api/:path*", + "destination": "http://example.front.ylab.io/api/:path*" + }, + { + "source": "/api/:path*/", + "destination": "http://example.front.ylab.io/api/:path*/" } ] }