diff --git a/vercel.json b/vercel.json index 30feb0d3..cc79e2f6 100644 --- a/vercel.json +++ b/vercel.json @@ -34,7 +34,10 @@ "permanent": true } ], - "rewrites": [{ "source": "/(?!api).*", "destination": "/index.html" }], + "rewrites": [ + { "source": "/api/:path*", "destination": "/api/:path*" }, + { "source": "/(.*)", "destination": "/index.html" } + ], "headers": [ { "source": "/assets/(.*)",