From 133e4756b20e0866d166677903bc5c6f21972bc4 Mon Sep 17 00:00:00 2001 From: Gigi Date: Fri, 10 Oct 2025 16:22:33 +0100 Subject: [PATCH] fix: add vercel.json to handle SPA routing on Vercel Without this configuration, page refreshes result in 404 errors because Vercel tries to serve non-existent files instead of routing through index.html for client-side routing. --- vercel.json | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 vercel.json diff --git a/vercel.json b/vercel.json new file mode 100644 index 00000000..f9c6977a --- /dev/null +++ b/vercel.json @@ -0,0 +1,9 @@ +{ + "rewrites": [ + { + "source": "/(.*)", + "destination": "/index.html" + } + ] +} +