feat: Integrate and serve the WebUI, including Vercel build configuration and Python routes for static files.

This commit is contained in:
CJACK
2026-02-01 16:43:52 +08:00
parent 9956770cb0
commit b17e492ab8
6 changed files with 105 additions and 9 deletions

View File

@@ -1,15 +1,24 @@
{
"version": 2,
"buildCommand": "cd webui && npm install && npm run build",
"builds": [
{
"src": "app.py",
"use": "@vercel/python"
},
{
"src": "static/admin/**",
"use": "@vercel/static"
}
],
"routes": [
{
"src": "/webui/assets/(.*)",
"dest": "/static/admin/assets/$1"
},
{
"src": "/(.*)",
"dest": "app.py"
}
]
}
}