From 38a21da67b1453f70a30c0dc1773ea66c996299b Mon Sep 17 00:00:00 2001 From: Vaibhav Kumar <69289977+subham9898@users.noreply.github.com> Date: Sat, 15 Nov 2025 00:17:39 +0530 Subject: [PATCH 1/2] Adjust SPA rewrite to skip asset requests --- vercel.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vercel.json b/vercel.json index e3528b8..3d3a827 100644 --- a/vercel.json +++ b/vercel.json @@ -47,8 +47,8 @@ ], "rewrites": [ { - "source": "/(.*)", + "source": "/((?!assets/).*)", "destination": "/index.html" } ] -} \ No newline at end of file +} From 831521fd20c950bef05e86db94a5fb54036d0e2c Mon Sep 17 00:00:00 2001 From: Vaibhav Kumar <69289977+subham9898@users.noreply.github.com> Date: Sat, 15 Nov 2025 10:50:37 +0530 Subject: [PATCH 2/2] Refine SPA fallback to keep asset MIME types --- vercel.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vercel.json b/vercel.json index 3d3a827..c84512d 100644 --- a/vercel.json +++ b/vercel.json @@ -47,7 +47,7 @@ ], "rewrites": [ { - "source": "/((?!assets/).*)", + "source": "/[^.]*", "destination": "/index.html" } ]