From 3e50ec1ab95c97e5d8dce871ca13798119026e97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=CA=9C=C9=AA=C9=B4=E1=B4=87=C9=AA=20N=E1=B4=8F=E1=B4=9C?= =?UTF-8?q?=E1=B4=A2=E1=B4=87=C9=B4?= <157171073+Shineii86@users.noreply.github.com> Date: Mon, 8 Jun 2026 18:03:47 +0530 Subject: [PATCH] fix: serve static files from public/ before server.js catch-all - API routes (/api/*) still go to server.js - All other routes serve from /public/ directory - Fixes privacy.html, tos.html, manifest.json, robots.txt, sitemap.xml, og-image.svg --- vercel.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vercel.json b/vercel.json index 549ebf7..d8e37a3 100644 --- a/vercel.json +++ b/vercel.json @@ -8,11 +8,15 @@ ], "routes": [ { - "src": "/(.*)", + "src": "/api/(.*)", "dest": "server.js", "headers": { "Access-Control-Allow-Origin": "*" } + }, + { + "src": "/(.*)", + "dest": "/public/$1" } ] } \ No newline at end of file