From ecf1c0f660b3c019af0855bdb022a2d447380a10 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Sun, 13 Apr 2025 23:58:22 +0800 Subject: [PATCH] fix: vercel dev rewrites --- vercel.json | 145 +++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 137 insertions(+), 8 deletions(-) diff --git a/vercel.json b/vercel.json index 1824d6ae4..72cfceac4 100644 --- a/vercel.json +++ b/vercel.json @@ -1,4 +1,5 @@ { + "$schema": "https://openapi.vercel.sh/vercel.json", "rewrites": [ { "source": "/__debug_proxy", @@ -10,35 +11,163 @@ }, { "source": "/share/:path*", - "destination": "https://follow-external-ssr.vercel.app/share/:path*" + "destination": "https://follow-external-ssr.vercel.app/share/:path*", + "has": [ + { + "type": "host", + "value": "app.follow.is" + } + ] }, { "source": "/og/:path*", - "destination": "https://follow-external-ssr.vercel.app/og/:path*" + "destination": "https://follow-external-ssr.vercel.app/og/:path*", + "has": [ + { + "type": "host", + "value": "app.follow.is" + } + ] }, { "source": "/login", - "destination": "https://follow-external-ssr.vercel.app/login" + "destination": "https://follow-external-ssr.vercel.app/login", + "has": [ + { + "type": "host", + "value": "app.follow.is" + } + ] }, { "source": "/register", - "destination": "https://follow-external-ssr.vercel.app/register" + "destination": "https://follow-external-ssr.vercel.app/register", + "has": [ + { + "type": "host", + "value": "app.follow.is" + } + ] }, { "source": "/forget-password", - "destination": "https://follow-external-ssr.vercel.app/forget-password" + "destination": "https://follow-external-ssr.vercel.app/forget-password", + "has": [ + { + "type": "host", + "value": "app.follow.is" + } + ] }, { "source": "/reset-password", - "destination": "https://follow-external-ssr.vercel.app/reset-password" + "destination": "https://follow-external-ssr.vercel.app/reset-password", + "has": [ + { + "type": "host", + "value": "app.follow.is" + } + ] }, { "source": "/external-dist/:path*", - "destination": "https://follow-external-ssr.vercel.app/external-dist/:path*" + "destination": "https://follow-external-ssr.vercel.app/external-dist/:path*", + "has": [ + { + "type": "host", + "value": "app.follow.is" + } + ] }, { "source": "/dist-external/:path*", - "destination": "https://follow-external-ssr.vercel.app/dist-external/:path*" + "destination": "https://follow-external-ssr.vercel.app/dist-external/:path*", + "has": [ + { + "type": "host", + "value": "app.follow.is" + } + ] + }, + { + "source": "/share/:path*", + "destination": "https://follow-external-ssr-dev.vercel.app/share/:path*", + "has": [ + { + "type": "host", + "value": "dev.follow.is" + } + ] + }, + { + "source": "/og/:path*", + "destination": "https://follow-external-ssr-dev.vercel.app/og/:path*", + "has": [ + { + "type": "host", + "value": "dev.follow.is" + } + ] + }, + { + "source": "/login", + "destination": "https://follow-external-ssr-dev.vercel.app/login", + "has": [ + { + "type": "host", + "value": "dev.follow.is" + } + ] + }, + { + "source": "/register", + "destination": "https://follow-external-ssr-dev.vercel.app/register", + "has": [ + { + "type": "host", + "value": "dev.follow.is" + } + ] + }, + { + "source": "/forget-password", + "destination": "https://follow-external-ssr-dev.vercel.app/forget-password", + "has": [ + { + "type": "host", + "value": "dev.follow.is" + } + ] + }, + { + "source": "/reset-password", + "destination": "https://follow-external-ssr-dev.vercel.app/reset-password", + "has": [ + { + "type": "host", + "value": "dev.follow.is" + } + ] + }, + { + "source": "/external-dist/:path*", + "destination": "https://follow-external-ssr-dev.vercel.app/external-dist/:path*", + "has": [ + { + "type": "host", + "value": "dev.follow.is" + } + ] + }, + { + "source": "/dist-external/:path*", + "destination": "https://follow-external-ssr-dev.vercel.app/dist-external/:path*", + "has": [ + { + "type": "host", + "value": "dev.follow.is" + } + ] }, { "source": "/((?!assets|vendor|locales|dist-external|external-dist/).*)",