mirror of
https://github.com/xfgryujk/blivechat.git
synced 2024-12-25 20:30:28 +08:00
添加Vercel配置
This commit is contained in:
parent
75938141f0
commit
a0d1bf4742
1
.gitignore
vendored
1
.gitignore
vendored
@ -107,3 +107,4 @@ venv.bak/
|
||||
.idea/
|
||||
data/
|
||||
log/
|
||||
.vercel
|
||||
|
31
frontend/vercel.json
Normal file
31
frontend/vercel.json
Normal file
@ -0,0 +1,31 @@
|
||||
{
|
||||
"$schema": "https://openapi.vercel.sh/vercel.json",
|
||||
"cleanUrls": true,
|
||||
"trailingSlash": false,
|
||||
"headers": [
|
||||
{
|
||||
"source": "/((?!api/)[^.]*)",
|
||||
"headers": [
|
||||
{
|
||||
"key": "Cache-Control",
|
||||
"value": "public, max-age=180"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"source": "/((?!api/).+\\.\\w+)",
|
||||
"headers": [
|
||||
{
|
||||
"key": "Cache-Control",
|
||||
"value": "public, max-age=86400"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"rewrites": [
|
||||
{
|
||||
"source": "/((?!api/)[^.]+)",
|
||||
"destination": "/"
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user