fix(web): 关注我们图片多 URL 回退(public→promotion),移除部署路径提示;Nginx 增加 /social/

Made-with: Cursor
This commit is contained in:
whm
2026-03-22 01:15:20 +08:00
parent 66b873d0b0
commit 5ff300d0f7
6 changed files with 76 additions and 28 deletions

View File

@@ -27,6 +27,12 @@ server {
try_files $uri =404;
}
# web/public/social/ → 关注我们二维码等(挂载 /var/www/yh-public
location ^~ /social/ {
alias /var/www/yh-public/social/;
add_header Cache-Control "public, max-age=300";
}
# 推广素材:文件必须真实存在,禁止落到 SPA index.html否则前端误判「静态存在」、视频拿到 HTML
# 宿主机 ./web/promotion 挂载覆盖本路径,改 social 下文件无需重新 npm build
location ^~ /promotion/ {