Revert "Build WebUI during Vercel deployment and enforce Cache-Control for admin UI"

This commit is contained in:
CJACK.
2026-02-04 18:25:04 +08:00
committed by GitHub
parent 2007e0cde3
commit 58d54adee2
6 changed files with 304 additions and 40 deletions

View File

@@ -6,31 +6,10 @@
"use": "@vercel/python"
}
],
"buildCommand": "bash scripts/build-webui.sh",
"rewrites": [
"routes": [
{
"source": "/(.*)",
"destination": "/app.py"
}
],
"headers": [
{
"source": "/admin/assets/(.*)",
"headers": [
{
"key": "Cache-Control",
"value": "public, max-age=31536000, immutable"
}
]
},
{
"source": "/admin/(.*)",
"headers": [
{
"key": "Cache-Control",
"value": "no-store, must-revalidate"
}
]
"src": "/(.*)",
"dest": "app.py"
}
]
}
}