Use explicit SPA route patterns instead of regex
cgen-8b97b7793114463aabfca2a57875511d
This commit is contained in:
parent
70df2121d4
commit
e3628c396a
1 changed files with 10 additions and 1 deletions
11
vercel.json
11
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": [
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue