From bf26b58e29ee169157069facc9878eee0d59f435 Mon Sep 17 00:00:00 2001 From: KQL Date: Mon, 3 Nov 2025 14:43:30 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=B7=BB=E5=8A=A0=20Vercel=20?= =?UTF-8?q?=E9=83=A8=E7=BD=B2=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 配置 vercel.json 用于优化部署 - 设置路由重写规则支持 React Router 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- vercel.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 vercel.json diff --git a/vercel.json b/vercel.json new file mode 100644 index 00000000..634e23e2 --- /dev/null +++ b/vercel.json @@ -0,0 +1,12 @@ +{ + "buildCommand": "npm run build", + "outputDirectory": "build", + "devCommand": "npm start", + "framework": "create-react-app", + "rewrites": [ + { + "source": "/(.*)", + "destination": "/index.html" + } + ] +}