Use explicit SPA routes with final catch-all for Vercel
cgen-0022346a0cb34bb7a408aa645d27457d
This commit is contained in:
parent
a0142135c7
commit
7f27160e6d
1 changed files with 12 additions and 1 deletions
13
vercel.json
13
vercel.json
|
|
@ -34,7 +34,18 @@
|
||||||
"permanent": true
|
"permanent": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"cleanUrls": 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": "/activity", "destination": "/index.html" },
|
||||||
|
{ "source": "/activity/:path*", "destination": "/index.html" },
|
||||||
|
{ "source": "/:path*", "destination": "/index.html" }
|
||||||
|
],
|
||||||
"headers": [
|
"headers": [
|
||||||
{
|
{
|
||||||
"source": "/assets/(.*)",
|
"source": "/assets/(.*)",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue