diff --git a/backend/config.ts b/backend/config.ts index 6643284..ef79e9f 100644 --- a/backend/config.ts +++ b/backend/config.ts @@ -15,5 +15,5 @@ export const tempMaxFiles = parseInt(env.TEMP_MAX_FILES ?? "10", 10) || 10; /** 临时上传目录总体积上限(字节),默认 200MB */ export const tempMaxTotalSize = parseInt(env.TEMP_MAX_TOTAL_SIZE ?? `${200 * 1024 * 1024}`, 10) || 200 * 1024 * 1024; -/** 字体搜索目录(按优先级排序) */ -export const fontDirs = ["font", "font/temp", "font/admin"] as const; +/** 字体搜索目录(按优先级排序:admin > 普通 > 临时) */ +export const fontDirs = ["font/admin", "font", "font/temp"] as const;