diff --git a/vercel.json b/vercel.json index 0ddf6b0d..c0e6beb1 100644 --- a/vercel.json +++ b/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": [ {