Use Vercel's cleanUrls for SPA routing instead of manual rewrites

cgen-b2b017d284b546c89750dbb6bd5e0549
This commit is contained in:
Builder.io 2025-11-16 01:26:16 +00:00
parent e3628c396a
commit a0142135c7

View file

@ -34,18 +34,7 @@
"permanent": 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": "/admin", "destination": "/index.html" },
{ "source": "/admin/:path*", "destination": "/index.html" },
{ "source": "/:path([^.]+)/?$", "destination": "/index.html" }
],
"cleanUrls": true,
"headers": [
{
"source": "/assets/(.*)",