Fix Vercel rewrite to properly exclude /api routes

cgen-950098149d4a4d608ac35a46661d8bd3
This commit is contained in:
Builder.io 2025-11-16 01:25:45 +00:00
parent 57c84fc80c
commit da296abc1f

View file

@ -35,8 +35,7 @@
} }
], ],
"rewrites": [ "rewrites": [
{ "source": "/api/:path*", "destination": "/api/:path*" }, { "source": "/(?!api).*", "destination": "/index.html" }
{ "source": "/(.*)", "destination": "/index.html" }
], ],
"headers": [ "headers": [
{ {