Use explicit SPA route patterns instead of regex

cgen-8b97b7793114463aabfca2a57875511d
This commit is contained in:
Builder.io 2025-11-16 01:26:07 +00:00
parent 70df2121d4
commit e3628c396a

View file

@ -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": [
{