From 2a737f2857eaa5d58beed1dc169e7a69b12fd086 Mon Sep 17 00:00:00 2001 From: douboer Date: Wed, 11 Feb 2026 18:33:57 +0800 Subject: [PATCH] update at 2026-02-11 18:33:57 --- font2svg.mac.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/font2svg.mac.conf b/font2svg.mac.conf index 4fa7e43..367482f 100644 --- a/font2svg.mac.conf +++ b/font2svg.mac.conf @@ -82,7 +82,8 @@ server { location = /fonts.json { expires 1h; 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 {