From da296abc1ffb5c1ec5fe0b91d2d552e03cbd0ab6 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Sun, 16 Nov 2025 01:25:45 +0000 Subject: [PATCH] Fix Vercel rewrite to properly exclude /api routes cgen-950098149d4a4d608ac35a46661d8bd3 --- vercel.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vercel.json b/vercel.json index cc79e2f6..0ddf6b0d 100644 --- a/vercel.json +++ b/vercel.json @@ -35,8 +35,7 @@ } ], "rewrites": [ - { "source": "/api/:path*", "destination": "/api/:path*" }, - { "source": "/(.*)", "destination": "/index.html" } + { "source": "/(?!api).*", "destination": "/index.html" } ], "headers": [ {