update at 2026-02-11 18:37:30

This commit is contained in:
douboer
2026-02-11 18:37:30 +08:00
parent 2a737f2857
commit 74eebc19db
2 changed files with 35 additions and 12 deletions

View File

@@ -82,8 +82,8 @@ server {
location = /fonts.json {
expires 1h;
add_header Cache-Control "public, must-revalidate" always;
# Web 端固定请求 /fonts.json优先使用 dist 内清单,兼容仅部署 dist 的场景
try_files /frontend/dist/fonts.json /fonts.json =404;
# Web 端固定请求 /fonts.json依次回退到 dist/public/root 三处清单
try_files /frontend/dist/fonts.json /frontend/public/fonts.json /fonts.json =404;
}
location = /miniprogram/assets/fonts.json {