From 7f27160e6dfd611651d1d8e1585e96161aae00a8 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Sun, 16 Nov 2025 01:26:20 +0000 Subject: [PATCH] Use explicit SPA routes with final catch-all for Vercel cgen-0022346a0cb34bb7a408aa645d27457d --- vercel.json | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/vercel.json b/vercel.json index 13fe6b6b..c459f480 100644 --- a/vercel.json +++ b/vercel.json @@ -34,7 +34,18 @@ "permanent": true } ], - "cleanUrls": true, + "rewrites": [ + { "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": "/activity", "destination": "/index.html" }, + { "source": "/activity/:path*", "destination": "/index.html" }, + { "source": "/:path*", "destination": "/index.html" } + ], "headers": [ { "source": "/assets/(.*)",