From 35d7b931e059755428d9139e641203e4e48c6638 Mon Sep 17 00:00:00 2001 From: martin-mfg <2026226+martin-mfg@users.noreply.github.com> Date: Wed, 25 Jun 2025 21:15:46 +0000 Subject: [PATCH] fix: don't mix up rewrite and redirect --- vercel.json | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/vercel.json b/vercel.json index f73c19da..a13f5260 100644 --- a/vercel.json +++ b/vercel.json @@ -1,12 +1,15 @@ { "buildCommand": "npm install && mkdir --parents .vercel/output/functions/isr/api.func/ && cp --recursive ./* .vercel/output/functions/isr/api.func/ && cp --recursive .vercel/output/functions/isr/api.func/_dot_vercel_copy/output/ .vercel/", "rewrites": [ - { "source": "/api", "destination": "/isr/api" } + { + "source": "/:match*", + "destination": "/isr/:match*" + } ], "redirects": [ { - "source": "/api:match*", - "destination": "/isr/api:match*" + "source": "/", + "destination": "https://github.com/anuraghazra/github-readme-stats" } ] } \ No newline at end of file