mirror of
https://github.com/CJackHwang/ds2api.git
synced 2026-05-18 23:25:10 +08:00
feat: Integrate and serve the WebUI, including Vercel build configuration and Python routes for static files.
This commit is contained in:
11
vercel.json
11
vercel.json
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user