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
|
"permanent": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"rewrites": [
|
"cleanUrls": true,
|
||||||
{ "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": [
|
"headers": [
|
||||||
{
|
{
|
||||||
"source": "/assets/(.*)",
|
"source": "/assets/(.*)",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue