From e3628c396af271c93acb24b4e4fdc5a41e0085e2 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Sun, 16 Nov 2025 01:26:07 +0000 Subject: [PATCH] Use explicit SPA route patterns instead of regex cgen-8b97b7793114463aabfca2a57875511d --- vercel.json | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/vercel.json b/vercel.json index 0ddf6b0d..c0e6beb1 100644 --- a/vercel.json +++ b/vercel.json @@ -35,7 +35,16 @@ } ], "rewrites": [ - { "source": "/(?!api).*", "destination": "/index.html" } + { "source": "/", "destination": "/index.html" }, + { "source": "/login", "destination": "/index.html" }, + { "source": "/login/:path*", "destination": "/index.html" }, + { "source": "/dashboard", "destination": "/index.html" }, + { "source": "/dashboard/:path*", "destination": "/index.html" }, + { "source": "/profile", "destination": "/index.html" }, + { "source": "/profile/:path*", "destination": "/index.html" }, + { "source": "/admin", "destination": "/index.html" }, + { "source": "/admin/:path*", "destination": "/index.html" }, + { "source": "/:path([^.]+)/?$", "destination": "/index.html" } ], "headers": [ {