update at 2026-02-11 18:33:57
This commit is contained in:
@@ -82,7 +82,8 @@ server {
|
|||||||
location = /fonts.json {
|
location = /fonts.json {
|
||||||
expires 1h;
|
expires 1h;
|
||||||
add_header Cache-Control "public, must-revalidate" always;
|
add_header Cache-Control "public, must-revalidate" always;
|
||||||
try_files $uri =404;
|
# Web 端固定请求 /fonts.json,优先使用 dist 内清单,兼容仅部署 dist 的场景
|
||||||
|
try_files /frontend/dist/fonts.json /fonts.json =404;
|
||||||
}
|
}
|
||||||
|
|
||||||
location = /miniprogram/assets/fonts.json {
|
location = /miniprogram/assets/fonts.json {
|
||||||
|
|||||||
Reference in New Issue
Block a user