From ce29d6bc3bb4779b1537468071ea53ad5599cf96 Mon Sep 17 00:00:00 2001 From: vibsin9322 Date: Thu, 21 Aug 2025 13:11:42 +0900 Subject: [PATCH] Fix Vercel routing: separate API and static file routes --- vercel.json | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/vercel.json b/vercel.json index 33c1c99..2a2925a 100644 --- a/vercel.json +++ b/vercel.json @@ -8,8 +8,20 @@ ], "routes": [ { - "src": "/(.*)", + "src": "/api/(.*)", "dest": "/api/simple.js" + }, + { + "src": "/health", + "dest": "/api/simple.js" + }, + { + "src": "/(.*\\.(html|css|js|json|svg|png|jpg|jpeg|gif|ico|woff|woff2|ttf|eot))", + "dest": "/$1" + }, + { + "src": "/(.*)", + "dest": "/index.html" } ], "env": {