fix(web): 关注我们图片多 URL 回退(public→promotion),移除部署路径提示;Nginx 增加 /social/
Made-with: Cursor
This commit is contained in:
@@ -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/ {
|
||||
|
||||
Reference in New Issue
Block a user