Use explicit SPA routes with final catch-all for Vercel

cgen-0022346a0cb34bb7a408aa645d27457d
This commit is contained in:
Builder.io 2025-11-16 01:26:20 +00:00
parent a0142135c7
commit 7f27160e6d

View file

@ -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/(.*)",