mirror of
https://github.com/CJackHwang/ds2api.git
synced 2026-05-16 06:05:07 +08:00
Revert "Build WebUI during Vercel deployment and enforce Cache-Control for admin UI"
This commit is contained in:
29
vercel.json
29
vercel.json
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user