Use Vercel's cleanUrls for SPA routing instead of manual rewrites
cgen-b2b017d284b546c89750dbb6bd5e0549
This commit is contained in:
parent
e3628c396a
commit
a0142135c7
1 changed files with 1 additions and 12 deletions
13
vercel.json
13
vercel.json
|
|
@ -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/(.*)",
|
||||
|
|
|
|||
Loading…
Reference in a new issue