Fix Vercel routing to exclude API routes from SPA rewrite

cgen-86126cf1871d42acac18809188dbff08
This commit is contained in:
Builder.io 2025-11-16 00:38:12 +00:00
parent f7dcb66032
commit fd99f2756e

View file

@ -34,7 +34,7 @@
"permanent": true
}
],
"rewrites": [{ "source": "/(.*)", "destination": "/index.html" }],
"rewrites": [{ "source": "/(?!api).*", "destination": "/index.html" }],
"headers": [
{
"source": "/assets/(.*)",